bind_variable_to_property
Binds a Figma variable to a node property like opacity, padding, radius, spacing, or fontSize, enabling design token-driven updates.
Instructions
Bind a FLOAT/STRING/BOOLEAN/EASING/TIMING variable to a node property via setBoundVariable(property, variable). Use property "opacity" to token-bind layer opacity (pair a FLOAT variable with a color rather than detaching the fill). Also used for padding, radius, spacing, and fontSize.
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>",
"property": "<property>",
"variableId": "<variableId>"
},
"name": "bind_variable_to_property"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| nodeId | Yes | ||
| property | Yes | ||
| variableId | Yes |