apply_variable_to_node
Bind a Figma variable to a node property such as fills, opacity, or dimensions. Call once per property to apply a variable value directly to the selected node.
Instructions
Bind a variable to a node property in Figma. Call once per field — for multiple fields, call multiple times.
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>",
"variableId": "<variableId>",
"field": "<field>"
},
"name": "apply_variable_to_node"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| nodeId | Yes | The ID of the node to bind the variable to | |
| variableId | Yes | The ID of the variable to bind | |
| field | Yes | The node property field to bind (e.g., 'fills/0/color', 'opacity', 'width', 'height') |