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.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"target": "<target>",
"position": "<position>"
},
"name": "photopea_reorder_layer"
}
}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 |