design_lock_layer
Lock or unlock a design layer by ID to prevent accidental edits; optionally set the locked state or toggle it by default.
Instructions
Lock or unlock a design layer to prevent accidental 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": {
"layerId": "<layerId>"
},
"name": "design_lock_layer"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| locked | No | Set lock state (default: toggle) | |
| layerId | Yes | ID of the layer | |
| sketchId | No | Target sketch ID (default: selected sketch) |