set_mask
Set whether a Figma node masks later siblings. Specify isMask true/false and optionally maskType (ALPHA, LUMINANCE, 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 }.
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": {
"nodeId": "<nodeId>",
"isMask": "<isMask>"
},
"name": "set_mask"
}
}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) |