photoshop_set_layer_visibility
Show or hide the active layer in Photoshop by setting visibility to true or false; target a document by ID or use the active one.
Instructions
Show or hide 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": {
"visible": "<visible>",
"document_id": "<document_id>"
},
"name": "photoshop_set_layer_visibility"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| visible | Yes | Whether the layer should be visible | |
| document_id | Yes | Photoshop document id from photoshop_get_state / photoshop_list_documents. Send null or 0 to use the active document. A positive number activates that document before the tool runs. When no document is open, a stale id does not block the call. |