reorder_layer
Move a layer to a specified stack index in GIMP to control stacking order for compositing, editing, or export.
Instructions
Move a layer to a new stack position.
Parameters:
new_position: Target stack index (0 = bottom)
layer_name / layer_index: Identify the layer (defaults to active layer)
image_index: Target image index (default 0)
Returns status dict.
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": {
"new_position": "<new_position>"
},
"name": "reorder_layer"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| layer_name | No | ||
| image_index | No | ||
| layer_index | No | ||
| new_position | Yes |