figma_resolve_variable
Resolve a Figma variable's alias chain to its concrete value (hex color, number, string, boolean) per mode. Use before figma_set_fills to verify what a token actually resolves to.
Instructions
Resolve a variable's alias chain to its concrete value (hex color, number, string, boolean). Traverses VARIABLE_ALIAS chains across collections to the final concrete value. Returns resolved value per mode (Light/Dark etc.). Use before figma_set_fills to verify what color a token resolves to. NOT for listing all variables (use figma_get_variables). Requires Desktop Bridge connection.
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>"
},
"name": "figma_resolve_variable"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| modeId | No | Specific mode ID to resolve. Omit to resolve all modes. | |
| variableId | Yes | Variable ID (e.g. 'VariableID:8:2258'). Get from figma_get_variables or figma_get_node_state boundVariableId fields. |