figma_update_variable
Update a single Figma variable's value for a specific mode, supporting color, number, string, and boolean values. Use for individual changes; use batch updates when changing multiple variables.
Instructions
Update a single variable's value. For multiple updates, use figma_batch_update_variables instead (10-50x faster). Use figma_get_variables first for IDs. COLOR: hex '#FF0000', FLOAT: number, STRING: text, BOOLEAN: true/false. Requires Canvas Bridge plugin.
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>",
"modeId": "<modeId>",
"value": "<value>"
},
"name": "figma_update_variable"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| value | Yes | The new value. For COLOR: hex string like '#FF0000'. For FLOAT: number. For STRING: text. For BOOLEAN: true/false. | |
| modeId | Yes | The mode ID to update the value in (e.g., '1:0'). Get this from the variable's collection modes. | |
| variableId | Yes | The variable ID to update (e.g., 'VariableID:123:456'). Get this from figma_get_variables. |