Search Tokens
Search for tokens across all tokensets and modes in a workspace. This powerful search tool helps you find existing tokens by name, type, or value, making it easy to discover and reuse tokens.Description
This helper tool provides comprehensive token search capabilities across your entire workspace. It searches through token names, values, and descriptions, and can optionally filter by token type.Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
workspace_id | string | Yes | The ID of the workspace |
query | string | Yes | Search query (name, type, or value pattern) |
type | string | No | Optional token type filter (color, dimension, etc.) |
Response
Returns matching tokens grouped by tokenset with:query: The search query usedtype_filter: The type filter applied (if any)results: Array of tokensets containing matching tokenstotal_found: Total number of matching tokensusage: Instructions on how to use the returned IDs
Example Usage
Example Response
Use Cases
- Token discovery: Find existing tokens by name or value
- Avoiding duplicates: Check if a token already exists before creating
- Pattern matching: Find all tokens matching a specific pattern
- Cross-tokenset search: Search across multiple tokensets at once
- Type filtering: Find tokens of a specific type
Search Examples
By Name Pattern
By Value
By Type
Related Tools
list_resources- Get workspace and tokenset IDsget_default_mode_tokens- Get all tokens from default modecreate_token- Create new tokensupdate_token- Update existing tokens
Workflow Example
Best Practices
- Use descriptive queries: Be specific with your search terms
- Check before creating: Search before creating new tokens to avoid duplicates
- Use type filters: Narrow down results with type filters when needed
- Copy exact IDs: Use the exact token and mode IDs from results
Error Prevention
This tool helps prevent common errors:- ❌ Creating duplicate tokens
- ❌ Using invalid token IDs
- ❌ Missing existing tokens
- ✅ Finding existing tokens by name or value
- ✅ Getting valid IDs for operations