photoshop_get_layers
List all layers in the active Photoshop document with kind, visibility, and opacity to identify layers for editing or debug layer structure.
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, 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. |