Reorder Layer
photopea_reorder_layerMove layers to new positions in the stack using top, bottom, above, or below parameters to control visual hierarchy and element ordering.
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
TableJSON 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 |