add_layer
Add a new transparent layer to a pixel art document, making it the active layer for editing. Optionally specify the insertion position.
Instructions
Add a new transparent layer (becomes the active layer).
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": {
"doc_id": "<doc_id>",
"name": "<name>"
},
"name": "add_layer"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | ||
| index | No | Insert position, 0=bottom (default: top) | |
| doc_id | Yes | Document id |