duplicate_layer
Create an exact copy of a selected or named GIMP layer and place it directly above the original for edits, comparisons, or variations.
Instructions
Duplicate a layer and insert the copy above it.
Parameters:
layer_name: Name of the layer to duplicate; defaults to active layer
image_index: Target image index (default 0)
Returns: {layer_name, layer_id}
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": "duplicate_layer"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| layer_name | No | ||
| image_index | No |