Move layer in the stack
gimp_move_layerMoves a layer or group to a new parent group or the image’s top level and sets its stack position, reordering the GIMP project without changing pixels or offsets.
Instructions
Move a layer or group to another parent (a group of the same image, or null for the top level) and position (0 = top-most). Does not change pixels or offsets. One undo step.
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": {
"item": "<item>",
"parent": "<parent>",
"position": "<position>"
},
"name": "gimp_move_layer"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| item | Yes | Item id (layer, group, mask...) e.g. 'item:5@a1b2c3d4'. | |
| parent | Yes | Group id to put the layer in; null for the top level of the image. | |
| position | Yes | Index within the parent, 0 = top-most (in front). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| x | Yes | Offset of the layer's top-left corner in image pixels. | |
| y | Yes | ||
| id | Yes | ||
| kind | Yes | ||
| mask | Yes | ||
| mode | Yes | GIMP layer mode nick, e.g. 'normal', 'multiply'. | |
| name | Yes | Layer name. GIMP keeps names unique within an image ('Title #1'). | |
| locks | Yes | ||
| width | Yes | ||
| height | Yes | ||
| parent | Yes | Id of the parent group, null at the top level. | |
| opacity | Yes | 0-100. | |
| visible | Yes | ||
| children | No | Child layers of a group, top-most first; null for non-groups. | |
| has_alpha | Yes |