photoshop_save_document
Save the active document to disk as PSD, JPEG, or PNG at a specified path; use when the user requests an export with a concrete file location 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 | 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. |