Harness Notes

Image input

Updated 2026-11-22,

On this page

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

QuestionCursor Agentchecked at 2026.10.12-d47ca18
Paste from the clipboard

Press Ctrl+V in the prompt to paste a clipboard image; it appears as an [Image #1] token. On macOS, a normal Cmd+V that delivers an empty paste (clipboard holds only an image) also attaches it, and a file copied in Finder attaches the actual image. In CLI 2026.10.12 the macOS reader takes PNG, JPEG or TIFF (TIFF is converted to PNG with sips); Linux paste works on Wayland and X11.

Windows clipboard support is listed in the January 2026 changelog, but image paste on Windows is not described separately.

Attach an image file

Drag an image file into the terminal, paste its path, or type @path/to/shot.png. In CLI 2026.10.12, a path that ends in .png, .jpg, .jpeg, .gif, .webp, .bmp, .tif, .tiff, .heic or .heif (quoted, ~/, absolute or file://) becomes an [Image #N] attachment. The hidden --image <path> launch flag only works in print mode (-p).

On macOS, screenshots dragged straight from the floating thumbnail can be unreadable (permission denied); the CLI suggests Cmd+Shift+Ctrl+4 and then pasting.

Only PNG, JPEG, GIF and WebP contents are accepted when the message is sent, so HEIC, BMP or TIFF files dropped in fail with an unsupported-type error.

Images in scripted runs

The documented way is to put the path in the prompt, e.g. agent -p "Describe ./screenshot.png", and the agent opens the file with its read tool. CLI 2026.10.12 also has a hidden flag, --image <path> (repeatable), that attaches the image directly to a -p prompt. A text prompt is still required, because print mode exits with No prompt provided for print mode if it is empty.

--image is missing from agent --help and is labelled internal-only in the binary, so it may change without notice.

There is no documented stdin or stream-json input for images.

Images through the SDK or API

Over ACP (agent acp), the CLI advertises promptCapabilities.image: true and accepts { "type": "image", "data": "<base64>", "mimeType": "image/png" } blocks in session/prompt. The TypeScript and Python SDKs take agent.send({ text, images: [{ data, mimeType }] }) or { url }. The Cloud Agents API accepts prompt.images (up to 5, 15 MB each, PNG/JPEG/GIF/WebP).

In CLI 2026.10.12, ACP image blocks are passed through as raw bytes without the CLI's own resizing, and blocks that carry only a uri with no data arrive empty.

ACP also sends a cursor/generate_image notification when the agent generates an image.

What is accepted

QuestionCursor Agentchecked at 2026.10.12-d47ca18
Formats, limits and resizing

Images attached to a message must be PNG, JPEG, GIF or WebP (checked by file signature). In CLI 2026.10.12, attachments are scaled to fit 2048x2048 and re-encoded as JPEG (quality 80), with quality and size stepped down until the image is at most 5 MiB. Images the agent opens with its read tool are re-encoded as WebP at no more than 1280 px on the long side and 1 MiB.

The CLI sets no per-message image count limit; the Cloud Agents API allows at most 5 images per prompt.

An image with no text

Partly

In the interactive CLI you can submit a prompt that contains only an attached image, but its [Image #1] placeholder is sent as the message text. Print mode (-p) rejects an empty text prompt even when --image is given. Over ACP, a session/prompt that contains only an image block is accepted.

Models that can't see images

Not documented

Cursor does not document what happens when the selected model cannot read images. In CLI 2026.10.12, the CLI never checks the model's image support itself; images go to Cursor's backend with the request, and any refusal comes from there.

Afterwards

QuestionCursor Agentchecked at 2026.10.12-d47ca18
Kept in the saved session

Partly

Image bytes are stored with the user message in the local chat store, so /rewind puts a turn's images back in the prompt and --resume/--continue reload a conversation that still contains them. Since 2026.10.08, images attached to a message queued during an interrupted turn are sent on the next turn. Cursor does not document whether images survive /summarize; plain-text transcripts show them only as [Image].

The agent opening images itself

Yes. The read tool returns image pixels for .png, .jpg, .jpeg, .gif, .webp, .bmp and .ico files (and files detected as images by content), so you can just mention a path. In CLI 2026.10.12 the read tool re-encodes them as WebP at up to 1280 px and 1 MiB, and reports an error for files that cannot be decoded.

Attached and generated images show as inline previews in terminals that support inline images.

Notes and sources

Cursor Agent, 8 sources
Paste from the clipboard, 1
Attach an image file, 2
Images in scripted runs, 2
Images through the SDK or API, 4
Formats, limits and resizing, 2
An image with no text, 2
Models that can't see images, 1
Kept in the saved session, 2
The agent opening images itself, 2