Layer mask
layer_maskCreate, apply, invert, or delete a non-destructive mask to hide or reveal portions of a layer. Paint mask strokes to control visibility.
Instructions
Manage a layer mask (non-destructive hiding): add (from reveal-all, hide-all or the selection), apply (bake), delete, invert, enable, disable. Paint on it with stroke/fill target:"mask" (paint reveals, blend "erase" hides).
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": "layer_mask"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| from | No | For add (default reveal) | |
| layer | No | Layer id, name, or index (0 = bottom, -1 = top). Default: the active layer. | |
| action | Yes |