get_tokens
Retrieve design tokens from the local registry to inspect available styles, validate token coverage, and check defined modes before implementing code.
Instructions
Get all design tokens currently stored in the local registry.
Prerequisites: None — reads from local registry without requiring a Figma connection. Run pull_design_system first if the registry is empty or stale.
Returns on success: Array of token objects, each with shape { name: string, type: "color"|"spacing"|"typography"|"radius"|"shadow"|"other", values: Record<string, string|number>, cssVariable?: string }. The values map is keyed by mode name (e.g. "Light", "Dark", "Default").
Error behavior: Returns an empty array [] if no tokens have been pulled yet — not an error.
Use this tool: to inspect available tokens before writing code (e.g. find the exact token name for a primary color), to validate token coverage before running sync_design_tokens, or to check which modes are defined. For a Tailwind-ready mapping, use sync_design_tokens instead.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||