set_layer_lock
Lock a layer to prevent edits, or unlock it to allow modifications. Controls edit permissions for individual layers in pixel art projects.
Instructions
Lock or unlock a layer against edits.
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>",
"locked": "<locked>"
},
"name": "set_layer_lock"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| layer | Yes | ||
| doc_id | Yes | Document id | |
| locked | Yes |