bind_variable
Binds a Figma variable to a node field like fill, stroke, spacing, radius, opacity, or dimensions, keeping design values linked and consistent.
Instructions
Bind a Figma variable to a node field (fill, stroke, width, height, itemSpacing, paddingTop, paddingRight, paddingBottom, paddingLeft, topLeftRadius, opacity, etc.).
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": "bind_variable"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| field | Yes | Target property e.g. fill, stroke, itemSpacing, paddingLeft, topLeftRadius, width | |
| nodeId | Yes | Target node ID | |
| channel | No | Optional Figma document channel, fileKey, or documentName when multiple Figma files are open | |
| paintIndex | No | Paint index when field is fill or stroke (default 0) | |
| variableId | Yes | Variable ID to bind |