Export design tokens
export_tokensExport local Figma variables as W3C-style Design Tokens, including hex colors and per-mode values, with optional collection filters to keep responses small.
Instructions
Export local Figma variables as a W3C-style Design Tokens object (nested by collection/variable name), plus a flat variables list. Colors are emitted as hex. With includeModes (default true) every mode's values are returned under tokensByMode like "Color/Dark"; the response also includes collections (each with its full modes list), modes (all mode keys emitted) and modeCount so you can verify all modes (not just the first) came through. Set includeModes=false to skip per-mode views. Pass collections (array of collection names or ids) to export only those collections — keeps the response small on large files.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| collections | No | Export only these collections (by name or id). Omit to export all. | |
| includeModes | No |