Edit layers
layer_editCreate, rename, delete, reorder, show, hide, lock, or unlock project layers, and move figures between them by specifying an action and required fields.
Instructions
Change the layers of the project: create one, rename one, delete one, reorder them, move figures between them, or show, hide, lock or unlock one. Give the action and the fields it needs.
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": {
"action": "<action>"
},
"name": "layer_edit"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | For "create" and "rename": the layer name. | |
| uids | No | For "assign": the figures to move. | |
| index | No | For "create": where to put the new layer. | |
| order | No | For "reorder": every user layer id, in the wanted order. | |
| action | Yes | The change to make. | |
| locked | No | For "lock": whether to lock the layer. | |
| layerId | No | The layer to change. | |
| project | No | The id of an open project, from project_open. Defaults to the project used most recently. | |
| visible | No | For "visible": whether to show the layer. |