photoshop_get_layers
List all layers in the active Photoshop document with kind, visibility, and opacity to choose a layer to edit or debug document 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 (LayerSets include is_artboard), context. Preconditions: active 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. |