paint_layer
Manage painting layers by ID or unique name, including creating, selecting, reordering, updating properties, duplicating, deleting, merging, flattening, stamping visible content, and applying masks.
Instructions
Manage layers by id or unique name. Indices bottom-to-top. create inserts above the active layer unless position (top/bottom) or index is given; reorder takes index or position top/bottom. stamp_visible adds a merged copy of everything visible (default at the top). name names created, duplicated or stamped layers; names are unique (an existing explicit name is an error, automatic names get ' 2'). merge_down accepts a clipped or non-normal upper layer (blended with the lower one only). properties (on create or update): name, opacity(0..1), blend, visible, locked, alpha_lock, clipping. Results include index and layer_count; list reports object_count (paint_object lists objects).
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": "paint_layer"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| kind | No | raster | |
| name | No | ||
| index | No | ||
| action | No | list | |
| layer_id | No | Target layer id or unique layer name; the active layer stays unchanged. Default: active layer | |
| position | No | ||
| properties | No | ||
| document_id | No | Target this document instead of the shared active one (recommended when several agents share the server) | |
| include_background | No |