set_active_layer
Define which layer editing tools apply to, ensuring edits target the correct layer in a pixel art document.
Instructions
Set the default target layer for editing tools.
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>",
"layer": "<layer>"
},
"name": "set_active_layer"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| layer | Yes | Layer id or name | |
| doc_id | Yes | Document id |