Get variables and their values
figma_get_variable_defsRetrieve Figma design token values across all local collections or only variables and styles a given node subtree uses, including per-mode values, aliases, and scopes.
Instructions
Design tokens with their VALUES. Without nodeId: every local collection (modes, default mode, key) and variable with values per mode name ("#1a2b3c80", "16", "true", "alias:color/blue/500" — strings, as figma_set_variable_value takes them), scopes, codeSyntax, key and description; paginated. With nodeId (a frame, a screen, a page): only the variables and styles that subtree USES, library ones included — variables { name: value resolved for that node, so a Dark frame reads Dark }, styles { name: value line }, and details with ids, keys and code syntax. Variables work on any plan; modes beyond the first are paid-only. Editors: Design; unverified: FigJam, Slides.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Max variables (file-wide list). Default 500. | |
| cursor | No | The nextCursor of a truncated call, unchanged. | |
| nodeId | No | Read the tokens this subtree uses instead of the file-wide list. | |
| session | No | Optional sessionId or file name, to pick a Figma file when more than one is connected. | |
| maxNodes | No | Nodes walked with `nodeId`. Default 2000. | |
| collectionId | No | Only this collection. |