photoshop_get_preview
Export the active Photoshop document as a base64 JPEG preview for visual verification after edits; skip this for numeric state.
Instructions
Export the active document as a base64 JPEG preview for visual verification.
Use when: after visual edits to confirm result before reporting success to the user. Do NOT use when: you only need numeric state — use photoshop_get_state (much cheaper).
Returns: MCP image content block (JPEG) plus metadata text (document size, color mode, up to 40 top-level layer names). Hosts that support MCP Apps also render ui://photoshop/preview. Preconditions: active document required. Side effects: creates and deletes a temp file; does not modify the document.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| quality | No | JPEG quality 1–12 (default 8) | |
| document_id | Yes | Photoshop document id from photoshop_get_state / photoshop_list_documents. Send null or 0 to use the active document. A positive number activates that document before the tool runs. When no document is open, a stale id does not block the call. | |
| max_dimension_px | No | Maximum long edge in pixels (default 1024) |