photoshop_get_preview
Export the active Photoshop document as a base64 JPEG preview to visually verify edits before reporting success.
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. 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 | No | Optional Photoshop document id from photoshop_get_state / photoshop_list_documents. When set, the tool activates that document before running so a UI tab switch cannot retarget the edit. | |
| max_dimension_px | No | Maximum long edge in pixels (default 1024) |