Bind variable to a property
figma_bind_variableBind a variable to a layer property—fills/strokes (with paint_index) or numeric fields like itemSpacing, paddingLeft, cornerRadius, width, or opacity—to keep design values linked.
Instructions
Binds a variable to a layer property: "fills"/"strokes" (color, with paint_index), or a numeric field like "itemSpacing", "paddingLeft", "cornerRadius", "width", "opacity".
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": {
"node_id": "<node_id>",
"field": "<field>",
"variable_id": "<variable_id>"
},
"name": "figma_bind_variable"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | No | Figma link (or file key) of the file to edit. Needed only when the plugin is open in more than one file. | |
| field | Yes | ||
| node_id | Yes | Node id, e.g. "12:345" (link form "12-345" also accepted) | |
| paint_index | No | ||
| variable_id | Yes |