Skip to main content

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

Response

Returns matching tokens grouped by tokenset with:
  • query: The search query used
  • type_filter: The type filter applied (if any)
  • results: Array of tokensets containing matching tokens
  • total_found: Total number of matching tokens
  • usage: 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

  • list_resources - Get workspace and tokenset IDs
  • get_default_mode_tokens - Get all tokens from default mode
  • create_token - Create new tokens
  • update_token - Update existing tokens

Workflow Example

Best Practices

  1. Use descriptive queries: Be specific with your search terms
  2. Check before creating: Search before creating new tokens to avoid duplicates
  3. Use type filters: Narrow down results with type filters when needed
  4. 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