bind_variable_field
Bind a variable to a Figma node field such as size, spacing, color-related weights, or visibility to control design values. Unbind by passing a null variableId.
Instructions
Bind (or unbind with variableId null) a variable to any bindable node field: height, width, characters, itemSpacing, paddingLeft, paddingRight, paddingTop, paddingBottom, visible, topLeftRadius, topRightRadius, bottomLeftRadius, bottomRightRadius, minHeight, maxHeight, minWidth, maxWidth, strokeWeight, strokeTopWeight, strokeRightWeight, strokeBottomWeight, strokeLeftWeight, opacity, counterAxisSpacing, fontFamily, fontSize, fontStyle, fontWeight, letterSpacing, lineHeight, paragraphSpacing, paragraphIndent. Use a FLOAT variable for numeric fields, BOOLEAN for visible, STRING for characters, fontFamily and fontStyle.
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>",
"field": "<field>",
"variableId": "<variableId>"
},
"name": "bind_variable_field"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| field | Yes | ||
| nodeId | Yes | ||
| variableId | Yes |