delete_layer
Delete a specific layer from a GIMP image by name or index, or remove the active layer when no target is provided. Returns status after removal.
Instructions
Delete a layer from an image.
Parameters:
layer_name: Name of the layer to delete
layer_index: Position index of the layer (alternative to layer_name)
image_index: Target image index (default 0)
Provide either layer_name or layer_index. Defaults to active layer if neither given.
Returns status dict.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "delete_layer"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| layer_name | No | ||
| image_index | No | ||
| layer_index | No |