photoshop_export_as
Export the active document as PNG, JPEG, WebP, or AVIF to a specified path, leaving the original file unchanged. Ideal for web-ready formats like WebP.
Instructions
Export a copy of the active document as PNG, JPEG, WebP or AVIF without changing the open document. WebP/AVIF require Photoshop 23.2+/recent builds and return a clear error when unsupported.
Users often say: export for web, save as webp, quick export png.
Use when: web-ready delivery formats are needed (WebP/AVIF/modern pipelines). Do NOT use when: saving the working document itself — use photoshop_save_document.
Returns: JSON { ok, summary, details: { path, format, method } }. Preconditions: active document. Side effects: writes one file to path.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Absolute output file path (extension should match format) | |
| format | No | Export format | PNG |
| quality | No | Quality 0-100 (JPEG/WebP/AVIF) | |
| 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. |