search_tokens
Search design tokens by name, type, value, or criteria. Filter by category, lifecycle, or deprecated status to locate exactly what you need.
Instructions
Search and discover design tokens by name, type, value, or other criteria. Use this to answer questions like 'What color tokens exist?', 'Find all spacing tokens', or 'Show deprecated tokens'. When results are truncated (e.g. '50 of 200'), offer to fetch more by calling again with limit: . Do not report truncation as a failure.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | No | Free-text search against token paths, descriptions, and values | |
| type | No | Filter by token type | |
| limit | No | Max results to return. Default from config (search.defaultLimit or limits.search) or 50. | |
| category | No | Filter by category, e.g. 'spacing' or 'colors' | |
| lifecycle | No | Filter by lifecycle. Omit or 'all' to include all. Default excludes draft unless config.search.includeDraft is true. | |
| deprecated | No | Filter for deprecated (true) or non-deprecated (false) tokens | |
| pathPrefix | No | Filter by token path prefix (e.g. 'color.semantic' or 'spacing') | |
| valuePattern | No | Regex pattern to match against token values | |
| includePrivate | No | Include private/internal tokens. Default from config.search.includePrivate or false. |