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.
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 |