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.
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. |