layer_create
Create a transparent GIMP layer with custom width, height, opacity, visibility, and blend mode; defaults to canvas size and returns a persistent ID for later edits.
Instructions
Create a transparent layer. Width/height default to canvas dimensions. opacity is 0..100; blend_mode accepts normal/multiply/screen/overlay and other valid GIMP LayerMode names. Returns a persistent layer_id.
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": {
"session_id": "<session_id>"
},
"name": "layer_create"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | Layer | |
| width | No | ||
| height | No | ||
| opacity | No | ||
| visible | No | ||
| blend_mode | No | normal | |
| session_id | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||