bind_variable
Bind a Figma variable to a node property such as fills, width, padding, or opacity, or pass null to unbind it. This links design values to variables for consistent updates.
Instructions
Bind a variable to a node property. Fields: fills/strokes (COLOR, bound to the first paint), width, height, itemSpacing, counterAxisSpacing, paddingLeft/Right/Top/Bottom, topLeftRadius/topRightRadius/bottomLeftRadius/bottomRightRadius, strokeWeight, opacity, characters, visible. Shortcuts: "padding" (4 sides), "cornerRadius" (4 corners). Pass variableId null to unbind.
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 | Node property to bind | |
| nodeId | Yes | ID of the node | |
| variableId | Yes | ID of the variable to bind, or null to remove the binding |