Delete layer
gimp_delete_layerRemove a layer or group and all child layers from a GIMP image. Deletion is destructive: pixels are lost unless undone in GIMP or reverted from a saved file.
Instructions
Remove a layer or a group with all its children. Destructive: the pixels are lost unless undone in GIMP or the image is reverted from a saved file. Ids of removed items become invalid.
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>"
},
"name": "gimp_delete_layer"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| item | Yes | Item id (layer, group, mask...) e.g. 'item:5@a1b2c3d4'. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| item | Yes | ||
| deleted | Yes |