Bind a variable
figma_bind_variableBind a Figma variable to a node property so its value updates from the token, not a static copy. Specify fill, stroke, or a numeric property like cornerRadius or opacity.
Instructions
Binds a variable from this file to a property, so the value follows the token rather than being a copy of it. Use "fill" or "stroke" for a colour variable; for a number use the property name, like cornerRadius, itemSpacing, paddingLeft, width or opacity.
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": "figma_bind_variable"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| field | Yes | "fill", "stroke", or a numeric property such as cornerRadius or itemSpacing. | |
| nodeId | Yes | Figma node id, like "21:10314". Omit to use whatever is selected on the canvas. | |
| variableId | Yes | From figma_list_library. |