List Resources
Get a comprehensive view of all your Tokencraft resources with their IDs. This tool provides a hierarchical view of your design token structure, making it easy to navigate and find the correct IDs for other operations.Description
This helper tool provides a complete overview of your Tokencraft resources in a single call. It can show just workspaces, or the full hierarchy including tokensets and modes when a workspace ID is provided.Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
workspace_id | string | No | Optional workspace ID to get tokensets and modes |
Response
Returns a hierarchical view with:workspaces: Array of all workspaces with IDs and namestokensets: Array of tokensets (if workspace_id provided)modes: Object with modes for each tokenset (if workspace_id provided)usage: Instructions on how to use the returned IDs
Example Usage
Get all workspaces only
Get full hierarchy for a workspace
Example Response
Use Cases
- Resource discovery: Get a complete overview of your design token structure
- ID reference: Find the correct IDs for other operations
- Hierarchy navigation: Understand the relationship between workspaces, tokensets, and modes
- Error prevention: Avoid using invalid IDs in other tools
Related Tools
search_tokens- Search for specific tokens across resourcesget_default_mode_tokens- Get tokens from the default modecreate_token- Create tokens using the IDs from this toolexport_tokenset- Export tokensets using the IDs from this tool
Workflow Example
Best Practices
- Start with overview: Call without parameters first to see all workspaces
- Drill down: Use workspace_id to get detailed hierarchy
- Copy exact IDs: Use the exact UUID from the response
- Check relationships: Verify tokenset and mode relationships before operations
Error Prevention
This tool helps prevent common errors:- ❌ Using invalid workspace IDs
- ❌ Using invalid tokenset IDs
- ❌ Using invalid mode IDs
- ❌ Confusing workspace IDs with tokenset IDs
- ✅ Getting valid, current IDs for all operations