resolve_theme_tokens
Retrieve actual Tailwind design tokens for a given namespace to ensure generated components use only existing theme values.
Instructions
Queries the resolved Tailwind CSS theme for a specific namespace and returns all design tokens. Use before generating components to discover what colors, spacing, or font values actually exist in this project. Example namespaces: 'colors', 'colors.brand', 'spacing', 'fontFamily', 'fontSize', 'screens'.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"config_path": "<config_path>",
"namespace": "<namespace>"
},
"name": "resolve_theme_tokens"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| filter | No | Optional substring filter on token names | |
| namespace | Yes | Dot-path into the theme (e.g. 'colors', 'colors.brand', 'spacing') | |
| config_path | Yes | Absolute path to tailwind.config.js or tailwind.config.ts |