Get Layers
photopea_get_layersRetrieve the complete layer hierarchy of the active document as JSON, including layer names, types, and indices for use in subsequent editing operations.
Instructions
Get the full layer tree of the active document as JSON. Returns an array of layer objects with name, type, index, visible, opacity, blendMode, and bounds properties. Groups contain nested children arrays. Use this to discover layer names and indices for other layer operations.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||