set_mask
Apply masks to Figma nodes individually or in batches using specified target and mask node IDs. Enables efficient UI/UX design modifications through structured operations, supported by the Conduit MCP server.
Instructions
Applies a mask in Figma. Supports single or batch:
Single: { targetNodeId, maskNodeId, channelId? }
Batch: { operations: [ { targetNodeId, maskNodeId, channelId? }, ... ] } Returns an array of result objects.
Input Schema
Name | Required | Description | Default |
---|---|---|---|
channelId | No | Channel ID for communication | |
maskNodeId | Yes | ID of the node to use as mask | |
operations | Yes | ||
parentId | No | Optional parent node ID for the resulting mask group | |
targetNodeId | Yes | ID of the node to be masked |
Input Schema (JSON Schema)
{
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": false,
"properties": {
"channelId": {
"description": "Channel ID for communication",
"type": "string"
},
"maskNodeId": {
"description": "ID of the node to use as mask",
"type": "string"
},
"operations": {
"items": {
"additionalProperties": false,
"properties": {
"channelId": {
"description": "Channel ID for communication",
"type": "string"
},
"maskNodeId": {
"description": "ID of the node to use as mask",
"type": "string"
},
"targetNodeId": {
"description": "ID of the node to be masked",
"type": "string"
}
},
"required": [
"targetNodeId",
"maskNodeId"
],
"type": "object"
},
"type": "array"
},
"parentId": {
"description": "Optional parent node ID for the resulting mask group",
"type": "string"
},
"targetNodeId": {
"description": "ID of the node to be masked",
"type": "string"
}
},
"required": [
"targetNodeId",
"maskNodeId",
"operations"
],
"type": "object"
}