Design tokens
get_design_tokensLook up an app's normalized design tokens for color, spacing, radius, or font, plus CSS var and TS/RN names, so fixes use tokens instead of hard-coded literals.
Instructions
Return the app's normalized design tokens (DTCG: path, type, resolved value, hex / px, alias, CSS var, TS and RN names, description, defining file) for the active token set, plus nameMap (CSS var or TS name → token path). This is the tool that makes a fix use the app's tokens instead of hard-coded literals: look up the token for a colour, spacing, radius or font before writing one. Optional filters: group (first path segment, e.g. color, space), type (color | dimension | fontFamily | …), direction (a named token set instead of the active one). Returns { projectId, set, tokens, nameMap, total }; at most 500 tokens. Read-only. Use get_design_deviance to see where code drifts off these tokens, or get_app_recipe for the overall state.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| type | No | Only tokens of this DTCG $type (color, dimension, fontFamily, …). | |
| group | No | Only tokens in this group (first path segment, e.g. color, space, radius). | |
| direction | No | A named token set (directions/<name>/) instead of the active one. | |
| projectId | No | Project UUID — defaults to the server-configured project when omitted (`project_id` is accepted too.) |