Update variable
figma.update_variableModify a variable mode's value in the current Figma file, supporting color, number, string, or boolean inputs.
Instructions
Update a local or imported Figma variable mode 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": {
"modeId": "<modeId>",
"value": "<value>"
},
"name": "figma.update_variable"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| value | Yes | ||
| modeId | Yes | ||
| variableId | No | ||
| variableKey | No |