bind_variable
Bind a Figma variable to a node property such as fills, strokes, or cornerRadius to enable design token-driven styling.
Instructions
Bind a variable to a node property.
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"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| nodeId | Yes | Target node | |
| property | Yes | Property to bind: fills, strokes, cornerRadius, paddingTop, etc. | |
| variableId | Yes | Variable ID to bind |