How to ask Claude about selected text in a Mac app

When a line in a document raises a question, select it and open a Margem comment. With Claude Code signed in on your Mac, you can ask about those words and read the reply in the same card.

20 sec · A demonstration with the actual Margem card and a sample reply. Download video
Email me the Mac installer

Get the install link and demo to open on your Mac.

Ask about one passage

  1. Open a document in TextEdit, select the sentence you want to discuss and click the small + beside the selection. You can also press Control + Option + M with the pointer over the selection.
  2. Write your question in the card and press Return to save the comment. For example, select “Wait 30 seconds” in a set of release notes and ask “When can I retry?”
  3. Click Ask. If you use more than one assistant, choose Claude from the arrow beside the button. On first use, review what will be sent and confirm. Claude’s reply appears under your comment. Click the pin to open the conversation again.

What does Claude receive?

Margem sends the question, the marked passage and the surrounding context it can read. A window image can also be included when available. Before asking, check Attached in the card and turn off the image if the window contains something you prefer to keep to yourself. Writing a personal note alone does not call Claude. See how the AI request works.

What do I need on my Mac?

Use an Apple silicon Mac with macOS 14 or later. Grant Margem Accessibility so it can read the selection. Install Claude Code, sign in on this Mac and check Claude in Margem’s Settings before trying the steps. The Claude Code quickstart covers installation and sign-in. Screen Recording is optional. If Claude Code is unavailable, Margem can hand the question off to the Claude app or let you copy it. That route puts the answer in the external chat.

Some apps expose the words under the pointer, while others expose only a window or a larger element. For a first try, use a selectable sentence in TextEdit and check that the card names the passage you meant.