figma_bind_variable
Bind a Figma variable to a node property such as fill or stroke. Specify the node, property, and variable to apply the binding via the plugin connection.
Instructions
Bind a variable to a node property. Requires plugin connection (no REST endpoint for this).
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>",
"property": "<property>",
"variableId": "<variableId>"
},
"name": "figma_bind_variable"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| nodeId | Yes | Node ID or name | |
| property | Yes | ||
| paintIndex | No | Index of fill/stroke paint to bind (default 0) | |
| variableId | Yes | Variable ID or variable name |