bind_color_variable
Bind a node's fill or stroke to a local color variable by ID or name, ensuring consistent color usage across Figma designs.
Instructions
Bind a node's fill or stroke colour to a local colour variable, by ID or by the name get_variables lists
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>"
},
"name": "bind_color_variable"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| nodeId | Yes | The node's ID | |
| property | Yes | ||
| collection | No | The collection's name, when the variable name repeats | |
| variableId | No | The variable's ID | |
| variableName | No | The variable's name, e.g. "Labels/Primary" |