bind_variable
Bind a variable to a node property to connect component properties with the theming system.
Instructions
Bind a Variable to a node property. This connects component properties to the theming system.
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"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| field | Yes | Property field to bind. Examples: 'fills/0/color', 'cornerRadius', 'paddingTop', 'paddingRight', 'paddingBottom', 'paddingLeft', 'itemSpacing', 'fontSize', 'lineHeight', 'letterSpacing' | |
| nodeId | Yes | Node ID to bind the variable to | |
| variableId | Yes | Variable ID to bind |