create_mask
Apply a clip mask to a Figma vector node: use one node as the mask shape and clip another target node to it, then group both into a masked unit.
Instructions
Apply a clip mask — maskNode defines the shape, targetNode is clipped to it. Both nodes are grouped.
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": {
"maskNodeId": "<maskNodeId>",
"targetNodeId": "<targetNodeId>"
},
"name": "create_mask"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | Name for the resulting group | |
| maskNodeId | Yes | ID of the node to use as the mask shape (bottom layer) | |
| targetNodeId | Yes | ID of the node to be masked (top layer) |