list_tokens
Inspect all project design tokens, hardcoded values, duplicates, and orphan tokens before adding or modifying tokens; use this read-only report to understand the existing design system.
Instructions
List all design tokens in the project.
Returns a comprehensive report:
- Registered tokens (dimensions, colors)
- Hardcoded values that could become tokens
- Duplicate tokens (same value, different names)
- Orphan tokens (registered but unused)
When to use:
- Call to explore all existing design tokens (colors and dimensions) and hardcoded literals in the project.
- Call before adding or modifying tokens to understand the existing design system.
When NOT to use:
- Do not use for reverse hex lookup (use find_token_by_color instead).
- Do not use for editing token values (use set_token or add_token instead).
Side effects:
- None (strictly read-only design token inspection).
Args:
project_path: optional — explicit path to project root.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| project_path | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |