move_layer
Reorder a layer to a new 1-based stack index within its parent group, letting AI agents restructure sprite layer order for pixel art.
Instructions
Reorder a layer to a new 1-based stack index (1 = bottom-most).
Note: moves within the layer's current parent group.
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": {
"filename": "<filename>",
"layer": "<layer>",
"to_index": "<to_index>"
},
"name": "move_layer"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| layer | Yes | ||
| filename | Yes | ||
| to_index | Yes |