add_layer
Adds a column with its own drawing level to an OpenToonz scene, with vector/ink/raster modes plus optional style, parent, and boil settings; later layers draw on top.
Instructions
Add a column with its own drawing level. Later layers are drawn ON TOP. mode: 'vector' (shapes -> native OpenToonz vector .pli, editable in GUI, pressure lines) | 'ink' (a vector .pli you and the user both draw on, stroke by stroke: stroke / read_drawing / erase_stroke) | 'raster' (PNG). style: override scene style for this layer (e.g. 'clean' for BG, 'sketch' for effects). parent: 'Table', a peg or another layer. boil: hand-drawn line boil on held drawings.
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": {
"scene": "<scene>",
"layer": "<layer>"
},
"name": "add_layer"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| boil | No | ||
| mode | No | vector | |
| layer | Yes | ||
| scene | Yes | ||
| style | No | ||
| parent | No | Table |