set_mask
Toggle masking on a Figma node. Optionally specify mask type (ALPHA, LUMINANCE, or GEOMETRY) when enabling.
Instructions
Set whether a node is a mask — a mask clips its later siblings to its own shape. Pass isMask true/false, and optionally maskType (ALPHA / LUMINANCE / GEOMETRY) when enabling. Returns { ok, nodeId }.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| isMask | Yes | Whether the node masks its later siblings | |
| nodeId | Yes | Figma node id | |
| maskType | No | How the mask clips (only applied when enabling) |