How to send a screenshot to Claude Code or Codex, with notes on it
Claude Code and Codex both take pictures: you paste, drag, or name a file. That works when you are already in the terminal. Agent HUD's inspector covers the other case: you copy something anywhere on your Mac, mark it up, and send it to the session you choose. The inspector is an experimental feature.
Updated 2026-11-23
The built-in ways
On the Mac, paste in Claude Code is Ctrl+V, not ⌘V.
| Claude Code | Codex | |
|---|---|---|
| Paste | Copy the image and press Ctrl+V in the CLI, or Alt+V on Windows and WSL | Paste into the interactive composer |
| Drag | Drag the image into the Claude Code window | In the IDE extension, hold Shift while dragging into the composer |
| A file | Give the path in your message, such as Analyze this image: /path/to/image.png | codex -i screenshot.png "Explain this error"; several with --image a.png,b.png |
Where that gets awkward
- You have to be in that agent's window, and find the right one when several sessions are open.
- A screenshot says nothing about which part you mean. You end up describing the spot in words.
- A bug report is often several things at once: a picture, a line from a log, a piece of a page. Each goes in by hand.
Agent HUD's inspector: copy, then send
With the inspector on, each copy shows a small bubble at the end of the HUD. Point at it and a window opens with what you just copied: text, a picture or files.
In that window you choose where it goes, an open session or a new session of an agent in a folder you pick. You can add the copy to a draft, copy something else and add that too, write a comment under each, and a note for the whole message. Send puts it into the session. With nothing added, the latest copy is what goes.
The agent receives your note first, then each thing you copied, numbered when there are several, under a line that says what it is and which app it was copied from. Copied words arrive in a code block, so the agent reads them as material and not as your request. A picture arrives as the path of its file.
Mark the spot on the picture
A copied picture can be marked up before it goes. The markup window has a box, a circle and a pen, and each mark takes a comment about that spot. The comments go under the picture as a numbered list, so "this button" and "this gap" each point at a number on the image.
From a web page: the browser extension
The Agent HUD browser extension picks a part of a page. Press its toolbar button, then click an element or drag an area. The extension crops a picture to what you picked and adds the page's title and address; for an element it also adds the selector, its HTML, its words and the styles that make its look.
The pick lands in the inspector's draft and the HUD brings the window up, ready to send. So "this card is misaligned" reaches the agent with the picture and the element's own markup.
Turn it on
- Open Settings → Experimental. Under Inspector, turn on Show after each copy.
- Fades after sets how long the bubble stays. The shortcut on the same page opens the inspector again after the bubble has gone.
- For web pages, add the extension from the Chrome Web Store. The Browser extension row shows when it has reached Agent HUD.
What to know before relying on it
- It is experimental, so it may change.
- The shortcut is on macOS only, and the browser extension does not reach Agent HUD on Windows yet.
- Nothing leaves your computer until you press Send. Until you open the window, Agent HUD knows only that the clipboard changed and what kind of thing it holds. Copies a password manager marks as hidden are skipped.
- A copied picture is saved in
~/.agenthud/tmpand removed after 7 days. - Some sessions take it later. For an agent that receives messages only when a turn ends, the window says it goes in when this turn ends.
Questions
How do I send a screenshot to Claude Code in the terminal?
Copy the image and press Ctrl+V in the CLI (Alt+V on Windows and WSL), drag it into the window, or give its path in your message. On the Mac it is Ctrl+V, not ⌘V.
How do I send an image to Codex?
Paste it into the interactive composer, or pass files on the command line: codex -i screenshot.png "Explain this error". Use --image a.png,b.png for several.
Can I send a screenshot to Claude Code without switching to the terminal?
Yes, with Agent HUD's inspector, an experimental feature. Copy the screenshot, point at the bubble on the HUD, choose the session and press Send.
Can I point at a part of a screenshot for the agent?
Yes. The inspector's markup window draws a box, a circle or a line on the picture, and each mark takes a comment that goes under the picture as a numbered list.
Can I send part of a web page to my agent?
Yes. The Agent HUD browser extension picks an element or an area of a page and sends a cropped picture with the page's address and, for an element, its HTML and styles.
