Get design tokens as JSON
get_design_tokensRetrieve design tokens as structured JSON—colors, typography, spacing, radii, components. If tokens are missing, returns partial results with an explanation.
Instructions
Return a design system's tokens - colours, typography, spacing, radii, components - as structured JSON. This is the cheapest way to answer any concrete styling question and should be your default over get_design. When a file has no machine-readable tokens the result sets partial:true and explains what is missing rather than returning nothing.
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": {
"design_id": "<design_id>"
},
"name": "get_design_tokens"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| only | No | Return just one token group. | |
| design_id | Yes | Namespaced id, e.g. "getdesign:stripe". |