update_layer
Select or modify a layer by index to rename it, toggle visibility, set opacity or blend mode, or delete it. This enables control over canvas composition.
Instructions
Select, rename, toggle visibility/opacity/blendMode, or delete a 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": {
"layerIndex": "<layerIndex>"
},
"name": "update_layer"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | ||
| action | No | Action to perform (default: "update"). | |
| opacity | No | ||
| visible | No | ||
| blendMode | No | ||
| layerIndex | Yes |