Get Layers
photopea_get_layersRead-onlyIdempotent
Extract the full layer hierarchy from Photopea documents as JSON, providing layer names, indices, and types to enable targeted layer identification and manipulation.
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
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||