photoshop_set_layer_locked
Lock or unlock the active Photoshop layer, optionally targeting a specific document ID to prevent UI tab switches from retargeting the edit.
Instructions
Lock or unlock the active layer
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": {
"locked": "<locked>"
},
"name": "photoshop_set_layer_locked"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| locked | Yes | Whether the layer should be locked | |
| document_id | No | Optional Photoshop document id from photoshop_get_state / photoshop_list_documents. When set, the tool activates that document before running so a UI tab switch cannot retarget the edit. |