Bind Variable
node_bind_variableBind variables to node properties or set variable modes, so values update with design tokens instead of using static literals.
Instructions
Bind a variable to a node property, or set an explicit variable mode. Use instead of a literal node_set_* when the value should track a design token.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| nodeId | Yes | The ID of the node to bind variables to | |
| nodeName | Yes | Name of the node to verify against | |
| bindVariables | No | Map of property names to variable IDs (to bind) or null (to unbind). E.g., { 'fills': 'VariableID:1:2' } | |
| explicitVariableModes | No | Map of variable collection IDs to mode IDs. E.g., { 'VariableCollectionID:1:2': 'ModeID:1:3' } |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| success | No | Whether the variables were bound successfully | |
| name | No | Name of the modified node | |
| message | No | Status message |