Find Tokens by Type
Find all tokens of a specific type across all your workspaces, tokensets, and modes. This tool is perfect for discovering all tokens of a particular type without needing to know workspace IDs.Description
This helper tool searches for tokens by type across your entire Tokencraft account. It automatically discovers all workspaces and searches through all tokensets and modes to find tokens of the specified type. No workspace ID required!Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
type | string | Yes | Token type to search for (color, dimension, fontSize, etc.) |
Response
Returns all tokens of the specified type with:token_type: The type searched forresults: Array of workspaces and tokensets containing matching tokenstotal_found: Total number of matching tokensusage: Instructions on how to use the returned IDs
Example Usage
Example Response
Use Cases
- Type discovery: Find all tokens of a specific type across your account
- Type analysis: Analyze all tokens of a particular type
- Type management: Manage all tokens of a specific type
- Export by type: Export all tokens of a specific type
- No workspace knowledge needed: Works without knowing workspace IDs
Supported Token Types
| Type | Description | Example Values |
|---|---|---|
color | Color values | #0066CC, rgb(0, 102, 204) |
dimension | Spacing, sizing | 16px, 2rem, 100% |
fontSize | Font sizes | 14px, 1.2rem |
fontWeight | Font weights | 400, bold, 600 |
fontFamily | Font families | Inter, Arial, sans-serif |
lineHeight | Line heights | 1.5, 24px |
letterSpacing | Letter spacing | 0.1em, 1px |
duration | Animation durations | 200ms, 0.3s |
cubicBezier | Timing functions | ease-in-out, cubic-bezier(0.4, 0, 0.2, 1) |
number | Numeric values | 42, 3.14 |
string | String values | "Hello", "World" |
boolean | Boolean values | true, false |
Related Tools
list_resources- Get workspace and tokenset IDssearch_tokens- Search tokens by name or valueget_tokens_by_mode- Get tokens from specific modesexport_tokenset- Export tokensets
Workflow Example
Best Practices
- Use exact type names: Use the exact token type names (case sensitive)
- Check all results: Review all workspaces and tokensets in results
- Use token IDs: Copy exact token IDs for other operations
- Combine with other tools: Use with
search_tokensfor more specific searches
Error Prevention
This tool helps prevent common errors:- ❌ Needing to know workspace IDs
- ❌ Missing tokens in other workspaces
- ❌ Using wrong token types
- ✅ Finding all tokens of a type across your account
- ✅ No workspace ID required
Common Use Cases
- “Show me all dimension tokens” →
find_tokens_by_type(type: "dimension") - “Find all color tokens” →
find_tokens_by_type(type: "color") - “Get all fontSize tokens” →
find_tokens_by_type(type: "fontSize") - “List all spacing tokens” →
find_tokens_by_type(type: "dimension")then filter by name