Get tokens
kaava_get_tokensLook up design tokens from the current design system by path or prefix to get CSS variables and values; omit the path to list token groups.
Instructions
Look up tokens from the current design system. Without a path, returns the list of token groups. With a path prefix ("color", "color.primary", "palette.neutral", "font.size", "space", "radius", "shadow"), returns each token with its CSS variable and value. Semantic colors live under "color"; raw ramps under "palette".
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "kaava_get_tokens"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | No | Show only this theme for semantic colors. Default: both. | |
| path | No | Token path or prefix, e.g. "color" or "font.size.lg". | |
| projectRoot | No | Absolute path of the project. Defaults to the first workspace root the client exposes, else the server working directory. |