How to give each harness a screenshot, mockup or diagram from its terminal, what it accepts, and whether the image survives in the saved session.
Getting an image in
| Question | Claude Codechecked at 2.1.299 |
|---|---|
| Paste from the clipboard | Yes. Press Linux needs Over SSH the remote machine cannot see your local clipboard; copy the file across with |
| Attach an image file | Drag an image file onto the terminal, or paste or type its path (for example A Pasted and attached images are also saved to a per-session |
| Images in scripted runs | Yes. The simplest route is to name the file in the prompt, as in Each stream-json message must be a single newline-terminated JSON line. Reading an image path in |
| Images through the SDK or API | Yes, through the Agent SDK (TypeScript and Python) in streaming-input mode: yield a user message whose Claude Code has no built-in ACP server; the SDK and |
What is accepted
| Question | Claude Codechecked at 2.1.299 |
|---|---|
| Formats, limits and resizing | PNG, JPEG, GIF and WebP are sent as images; macOS TIFF screenshots, WSL BMP clipboards and CMYK JPEGs are converted first. Claude Code downscales anything over 2000x2000 px and compresses pasted, attached and Read-tool images to the same token budget, re-encoding a still-over-500KB result as JPEG. Requests are capped at 32 MB, and when the API's per-request image count or Claude Code's total image size cap would be exceeded, the oldest images and PDFs are dropped in batches. An image Claude Code cannot decode or resize is refused with a message telling you to convert it to PNG, JPEG, GIF or WebP. PDFs are separate: Read takes up to 20 pages per call for PDFs over 10 pages, and the API limit is 100 pages / 20 MB. |
| An image with no text | Not documented The terminal docs don't say whether a prompt holding only a pasted image is accepted; a paste does leave an |
| Models that can't see images | Not documented Claude Code runs Claude models, which all accept images, so there is no documented fallback for a model that can't see them. If the API refuses an image (too large, too many, or unprocessable), Claude Code swaps that image for a text placeholder or drops the oldest images and retries, and Claude no longer sees them. Behaviour with a non-Claude model behind |
Afterwards
| Question | Claude Codechecked at 2.1.299 |
|---|---|
| Kept in the saved session | Partly The session transcript ( With If Claude needs a dropped or compacted image again, share it again. |
| The agent opening images itself | Yes. The Read tool returns PNG, JPEG and other image files as visual content Claude can see, resized and recompressed to fit the model's limits, and reads PDFs page by page. Images returned by MCP tools (for example browser screenshots from Claude in Chrome or Playwright) are shown inline and also saved to the session's For fine detail in a large screenshot, ask Claude to crop the region first (for example with ImageMagick), since the copy it sees may be downscaled. Read detects the format from the file bytes, not the extension; a non-image saved as |