photoshop_get_document_info
Read the active Photoshop document's ID, name, size, resolution, and color mode. Use when you need its properties without altering pixels or the active tab.
Instructions
Read the active document id, name, size, resolution, and color mode. Does not change pixels or which tab is active.
Use when: you need dimensions or color mode of the front document only. Do NOT use when: several documents are open and you need every tab — use photoshop_list_documents. Do NOT use when: you also need the active layer and selection — use photoshop_get_state.
Returns: document context JSON. Preconditions: an open document. Side effects: none.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| 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. |