set_variable
Update a local Figma COLOR or FLOAT variable in its default mode or a specified modeId. Use it to change token values; bound layers follow Figma variable behavior.
Instructions
Update one local COLOR (#RRGGBB) or FLOAT token in its default mode or specified modeId. Bound layers follow Figma variable behavior; specimen value captions may need updating separately.
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": {
"variableId": "<variableId>",
"value": "<value>"
},
"name": "set_variable"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| value | Yes | ||
| modeId | No | ||
| variableId | Yes |