bind_variable
Bind a Figma variable to node properties like fill, stroke, width, padding, radius, opacity, or text settings to control design values consistently through variables.
Instructions
Bind a variable to node properties. field: 'fill' | 'stroke' (paint color) or any bindable node field: width, height, itemSpacing, counterAxisSpacing, paddingTop/Right/Bottom/Left, cornerRadius, topLeftRadius..., strokeWeight, opacity, visible, characters, fontSize, fontFamily, fontStyle, fontWeight, lineHeight, letterSpacing, minWidth, maxWidth... 'padding' and 'cornerRadius' bind all sides.
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": {
"nodeIds": "<nodeIds>",
"field": "<field>",
"variable": "<variable>"
},
"name": "bind_variable"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file | No | Target file (fileKey, id or name). Defaults to the most recently active file. | |
| field | Yes | ||
| nodeIds | Yes | ||
| variable | Yes | Variable name or id | |
| collection | No | Disambiguate by collection name |