Skip to main content

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

Response

Returns a hierarchical view with:
  • workspaces: Array of all workspaces with IDs and names
  • tokensets: 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
  • search_tokens - Search for specific tokens across resources
  • get_default_mode_tokens - Get tokens from the default mode
  • create_token - Create tokens using the IDs from this tool
  • export_tokenset - Export tokensets using the IDs from this tool

Workflow Example

Best Practices

  1. Start with overview: Call without parameters first to see all workspaces
  2. Drill down: Use workspace_id to get detailed hierarchy
  3. Copy exact IDs: Use the exact UUID from the response
  4. 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