figma_set_variable_value
Set a Figma variable value for a specific mode directly via the REST API, no plugin required. Mode ID from the variables endpoint is needed.
Instructions
Set variable value for a mode. Uses REST API — no plugin required. Use mode ID (get from figma_get_variables).
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": {
"fileKey": "<fileKey>",
"variableId": "<variableId>",
"modeId": "<modeId>"
},
"name": "figma_set_variable_value"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| value | No | ||
| modeId | Yes | Mode ID | |
| fileKey | Yes | File key or Figma URL | |
| variableId | Yes | Variable ID |