Manage Layers
ps_manage_layersPerform various layer operations including delete, duplicate, merge, flatten, rasterize, group, ungroup, lock, unlock, show, or hide. Targets the specified layer or the active layer.
Instructions
Performs a layer operation: delete, duplicate, merge-visible, flatten, rasterize, group, ungroup, lock, unlock, show, or hide. Targets the named layer or the active layer if none is specified. This single tool replaces 10+ individual layer-action tools.
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": {
"action": "<action>"
},
"name": "ps_manage_layers"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| action | Yes | The layer action to perform | |
| layerName | No | Target layer name — defaults to the active layer |