atomicConnection & state

photoshop_get_preview

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.

Parameters

NameTypeRequiredDescription
max_dimension_pxnumberMaximum long edge in pixels (default 1024)
qualitynumberJPEG quality 1–12 (default 8)

Community recipes

Nothing here yet. Be the first to share one.

Share a recipe