figma_tokens
Before generating code, retrieve design tokens and local styles from the open Figma file: variable collections with modes/per-mode values plus paint/text/effect styles, so output follows the design system.
Instructions
Design tokens and styles of the open file: every local variable collection with its modes and per-mode values (colors as hex, aliases as {name}), plus local paint/text/effect styles. Read this before generating code or building on a design system; figma_metadata with styles:true then tells you what each node is bound to.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| collection | No | Only collections whose name contains this (case-insensitive). | |
| maxVariables | No | Cap on variables returned (default 2000). | |
| includeStyles | No | Include local paint/text/effect styles. Default true. |