Paint: Manage layers
paint_layerManage layers on a named paint canvas: list, add, remove, select, move, merge, or set name, opacity, blend mode, and visibility by index.
Instructions
list | add | remove | select | move | merge | set (rename, opacity, blend, visible). Layers stack bottom→top; index 0 is the bottom one.
Target the canvas by name (created with paint_canvas) and optionally a layer index. Layers, filters and undo work the same for every drawing tool.
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": {
"canvas": "<canvas>",
"action": "<action>"
},
"name": "paint_layer"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | No | Destination index for move | |
| name | No | ||
| below | No | Insert below the active layer | |
| blend | No | ||
| index | No | ||
| action | Yes | ||
| canvas | Yes | Canvas name. Letters, digits, space, dot, dash, plus; the .png/.paint suffix may be included or omitted. | |
| opacity | No | ||
| preview | No | Image reply: auto/thumb = downscaled picture back into the result, full = unpixelated, none = text only | |
| visible | No | ||
| preview_size | No | Longest edge of the returned thumbnail |