photoshop_get_layers
List layers in the active Photoshop document with kind, visibility, and opacity to select a layer to edit or debug structure. Optionally activate document first to prevent tab-switch retargeting.
Instructions
List all layers in the active document with kind, visibility, and opacity.
Use when: choosing a layer to edit, debugging structure, or after organize_layers. Do NOT use when: only session summary is needed — use photoshop_get_state (lighter).
Returns: layerCount, layers array (LayerSets include is_artboard), context. Preconditions: active document. Side effects: none.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| 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. |