layer_setMasking
Configure group and per-layer masking modes, including mask-inside-bottom presets and optional pixel expansion, to control which Moho layers are hidden or masked.
Instructions
Configure Group masking (groupMask or one-shot preset: 'mask_inside_bottom') and per-layer masking (maskingMode, expandByPixel, guarded excludeStrokes).
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "layer_setMasking"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| preset | No | One-shot setup: group hide_all, bottom child add_mask, siblings masked | |
| layerId | No | Numeric depth-first layer ID (from layer_list) | |
| groupMask | No | ||
| layerName | No | Exact layer name | |
| layerUuid | No | Layer UUID | |
| maskingMode | No | ||
| expandByPixel | No | Expand mask by one pixel to prevent seam halos | |
| invisibleMask | No | Use add_mask_invis for bottom layer with mask_inside_bottom preset | |
| excludeStrokes | No | Exclude strokes from mask if exposed by active Moho version |