Select Layer
photopea_select_layerIdempotent
Activate a layer by name or index to prepare it for editing operations. Targets specific layers for applying filters, adjustments, and fills.
Instructions
Set a layer as the active layer by name or index. Many tools (apply_filter, apply_adjustment, fill_selection) operate on the active layer — use this to target a specific layer first. Use get_layers to find layer names and indices.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| target | Yes | Layer name (string) or index (number) |