get_tokens
Retrieve design tokens from the local registry, filtered by name, type (color, spacing, typography, radius, shadow, other), and output format (default flat or DTCG document).
Instructions
Get design tokens from the local registry, optionally filtered.
Prereq: none — local read; run pull_design_system if empty. Returns: [{ name, type: "color"|"spacing"|"typography"|"radius"|"shadow"|"other", values (keyed by mode), cssVariable? }]; [] when none. format "dtcg" returns the same tokens as a W3C Design Tokens (DTCG) document instead — nested groups, $type/$value, lossless via $extensions. Filter by type/name to keep payloads small on large token sets. For a Tailwind-ready mapping use sync_design_tokens.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | Case-insensitive substring filter on token names (e.g. 'primary'). | |
| type | No | Only return tokens of this type. | |
| format | No | Output format: "memi" = flat token array (default); "dtcg" = W3C Design Tokens document for interop with other DTCG tooling. | memi |