get_variable_defs
Access design tokens from Figma by trying the Enterprise variables API first; if unavailable, falls back to published styles and inferred tokens from node fills and text styles.
Instructions
Get design tokens: tries the Enterprise variables/local endpoint first; on 403 falls back to published styles + tokens inferred from node fills/text styles. Every output is marked with source.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | No | Full figma.com URL (design/file/proto). node-id query param is honored. | |
| nodeId | No | Node id, "1:2" or "1-2" form. Overrides node-id in url. | |
| fileKey | No | Figma file key (from the file URL). Provide either fileKey or url. | |
| includeInferred | No | Include tokens inferred from node styles in fallback mode. |