set_locked
Lock or unlock a Figma node to prevent accidental edits or allow changes. Specify the node ID and whether it should be locked.
Instructions
Lock or unlock a node to prevent/allow 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": {
"nodeId": "<nodeId>",
"locked": "<locked>"
},
"name": "set_locked"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| locked | Yes | Whether the node should be locked | |
| nodeId | Yes | The ID of the node to lock/unlock |