Get design tokens fallback
get_design_tokens_fallbackBuilds labeled design tokens from Figma file styles and optional inferred values when variables are unavailable, marking each inferred token as inferred: true.
Instructions
Skip the variables API. Build labeled tokens from file styles (library_content:read) plus optional inferred fills/type/radii/spacing from a subtree. Every inferred token has inferred: true — not real Figma 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": {
"file": "<file>"
},
"name": "get_design_tokens_fallback"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file | Yes | Figma file key or URL (figma.com/design/... or figma.com/file/...) | |
| mode | No | ||
| node_id | No | Optional frame id. Without it, styles may be names-only (no paint values). | |
| max_variables | No |