photoshop_save_document
Save the active Photoshop document to a specified path in PSD, JPEG, or PNG format. Use for export/save requests with a required path and format.
Instructions
Save the active document to disk in PSD, JPEG, or PNG format.
Use when: user requests export/save with a specific path and format. Do NOT use when: web-optimized resize+sharpen pipeline is needed — use photoshop_recipe_prepare_for_web.
Returns: confirmation with saved path and format. Preconditions: active document; path required. Side effects: writes file to disk.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Full path where to save the document | |
| format | No | File format (PSD, JPEG, PNG) | PSD |
| quality | No | Quality for JPEG (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. |