Set variable values
figma_set_variable_valueUpdate a Figma variable's value for one or more modes by specifying the variable ID and values to keep design tokens consistent.
Instructions
Updates a variable's value for one or more modes.
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": {
"variable_id": "<variable_id>",
"values": "<values>"
},
"name": "figma_set_variable_value"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | No | Figma link (or file key) of the file to edit. Needed only when the plugin is open in more than one file. | |
| values | Yes | ||
| variable_id | Yes |