update_variable
Set a new value for a specified Figma variable, optionally in a chosen mode.
Instructions
Update a variable value.
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": "update_variable"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | No | Mode to update (updates default if omitted) | |
| value | Yes | New value | |
| variableId | Yes | Variable ID |