nucleo-tokens-set
Update design tokens by sending only changed values; changes merge with saved tokens and defaults, and the response lists contrast issues caused in published documents.
Instructions
Edits the design tokens (groups color, space, text, font, radius, shadow, container). Only the values to change are sent; they are merged with the saved tokens and the defaults; null removes a key (back to the default, or gone if the key is new). A new key extends a scale: {"space": {"20": 6}} creates $space.20 (keys: lowercase letters, digits and -, at most 48 per group). Units: space and text in rem, text as [minRem, maxRem], container as integer px. Invalid values or unknown groups return invalid_tokens. The result lists the contrast problems the new tokens cause in published documents (up to 50). Full rules: nucleo/catalog-get {"topic": "tokens"}.
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": {
"tokens": "<tokens>"
},
"name": "nucleo-tokens-set"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tokens | Yes | Token groups, for example {"color": {"primary": "#1d4ed8"}, "space": {"4": 1}, "text": {"xl": [1.25, 1.5]}, "container": {"lg": 1200}}. |