photoshop_export_as
Export a copy of the active Photoshop document as PNG, JPEG, WebP, or AVIF without altering the open file; optionally export a single artboard for web-ready delivery.
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), or one artboard from a multi-screen file. Do NOT use when: saving the working document itself — use photoshop_save_document. For every artboard at once use photoshop_export_artboards.
Returns: JSON { ok, summary, details: { path, format, method, artboard_id? } }. Preconditions: active document. Side effects: writes one file to path. Optional artboard_id exports only that board (duplicate + crop).
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) | |
| artboard_id | No | Optional artboard layer id from photoshop_list_artboards — export that board only instead of the full canvas | |
| 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. |