photoshop_close_document
Close an open Photoshop document tab, defaulting to the active file or targeting a specific document by ID. Optionally save unsaved changes before closing to clean up extra open tabs.
Instructions
Close a Photoshop document tab. Defaults to the active document; pass document_id to close a specific open file.
Use when: the user is done with a file, or when cleaning up extra open tabs after photoshop_list_documents. Do NOT use when: you only need to switch tabs — use photoshop_set_active_document.
Returns: confirmation that the document closed. Preconditions: target document is open. Side effects: closes that tab; save=true writes unsaved changes first.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "photoshop_close_document"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| save | No | Whether to save changes before closing | |
| 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. |