bind_variable_to_node
Bind variables to Figma node properties like fill color, dimensions, spacing, and opacity to drive dynamic design values.
Instructions
Bind a local variable to a node property, so the property is driven by the variable's value. Use 'fillColor' to bind a COLOR variable to the node's fill color. Use other fields (opacity, width, height, cornerRadius, itemSpacing, paddingTop, paddingRight, paddingBottom, paddingLeft) for FLOAT variables.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| field | Yes | Property to bind: fillColor | opacity | width | height | cornerRadius | itemSpacing | paddingTop | paddingRight | paddingBottom | paddingLeft | |
| nodeId | Yes | Target node ID in colon format e.g. 4029:12345 | |
| variableId | Yes | Variable ID to bind (from get_variable_defs) |