layer_setProperties
Control Adobe InDesign layer visibility, locking, and printability by specifying a layer index and optional document. Use to show, hide, lock, or unlock layers for precise layout edits.
Instructions
Set layer properties (visibility, lock, etc.)
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": {
"layerIndex": "<layerIndex>"
},
"name": "layer_setProperties"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| locked | No | ||
| visible | No | ||
| printable | No | ||
| layerIndex | Yes | ||
| document_id | No | Which open document to act on: a name (see document_listOpen) or a 0-based index. Defaults to the front document. |