Reorder Layer
photopea_reorder_layerMove a layer to a new position in the layer stack: to the top, bottom, or one step above or below.
Instructions
Move a layer to a new position in the layer stack. Use 'top' or 'bottom' to move to the ends of the stack, or 'above'/'below' to shift one position relative to the current index. Use get_layers to see the current layer order.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| target | Yes | Layer name (string) or index (number) | |
| position | Yes | Target position: 'top' = front of stack, 'bottom' = back of stack, 'above' = one position up, 'below' = one position down |