atomicDocuments
photoshop_set_active_document
Switch the active document tab by document_id (preferred), zero-based index, or name. Use when: working across multiple open files and mutations must target a specific document. Do NOT use when: only one document is open — it is already active. Do NOT use document_name when duplicate names exist — use document_id from photoshop_list_documents. Returns: JSON { ok, summary, details: { activated: { id, name }, context } }. Preconditions: target document must be open. Provide exactly one of document_id, index, or document_name. Side effects: changes active tab.
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
| document_id | number | — | Unique internal document id from photoshop_list_documents (preferred) |
| index | number | — | Zero-based tab order index (leftmost tab is 0) |
| document_name | string | — | Document name/title (ambiguous if multiple tabs share the same name) |
Community recipes
Nothing here yet. Be the first to share one.
Share a recipe