Skip to main content

get_tokenset

Retrieves a tokenset including all its modes and token counts.

Tool Schema

{
  "name": "get_tokenset",
  "description": "Get a Tokencraft tokenset with its modes",
  "inputSchema": {
    "type": "object",
    "properties": {
      "tokenset_id": {
        "type": "string",
        "description": "ID of the tokenset"
      }
    },
    "required": ["tokenset_id"]
  }
}

Parameters

ParameterTypeRequiredDescription
tokenset_idstringYesTokenset ID

Response

{
  "tokenset": {
    "id": "tokenset-123",
    "name": "Colors",
    "description": "Color tokens for the design system"
  },
  "modes": [
    {
      "id": "mode-light",
      "name": "Light",
      "is_default": true,
      "token_count": 50
    },
    {
      "id": "mode-dark",
      "name": "Dark",
      "is_default": false,
      "token_count": 50
    }
  ]
}

Example Usage

You: Show me the Colors tokenset with all its modes

Claude: **Colors Tokenset**

Description: Color tokens for the design system

**Modes**:
- Light (default) - 50 tokens
- Dark - 50 tokens
- High Contrast - 45 tokens

Total: 145 tokens across 3 modes

See Also