layers
Manage the canvas stack: list, add, update, select, clear, or delete drawing levels, and adjust visibility, opacity, color, blend mode, lock state, tracing underlay, and order.
Instructions
Manage layers: list, add, update (name, visible, opacity 0-1, color — layer "Background" is the pinned bottom layer that fills the canvas: update it with color and/or visible, blend normal|multiply|screen|overlay|darken|lighten|color-dodge|difference, reference = tracing underlay excluded from export, locked, index), select, clear, delete.
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": {
"action": "<action>"
},
"name": "layers"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | ||
| blend | No | ||
| color | No | Background only: canvas colour | |
| index | No | ||
| layer | No | Layer id, exact name, or index (0 = bottom). Defaults to the active layer. | |
| action | Yes | ||
| locked | No | ||
| opacity | No | ||
| visible | No | ||
| reference | No |