Token scale audit
audit_token_scalesAudit the scales behind a set of design values. Pass css (free), a public url (Pro), or values (JSON with any of colors, fontSizes, spacing, radii; each a list of strings, or {value, count} objects). Reports: colors within deltaE 2 of a more used color (with the one to keep), font sizes, spacing and radii within 1px of each other, values that sit off the detected 4px or 8px grid, gaps between steps, values used exactly once, and a proposed consolidated scale with a table mapping every changed old value to its new value. Mappings snap to the nearest standard step and should be checked on screen before applying.
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": "audit_token_scales"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| css | No | CSS text to read (a stylesheet, or several concatenated). Free up to 100,000 characters; Pro up to 2,000,000. | |
| url | No | Pro only. Public page whose linked and inline stylesheets are fetched (up to 12 sheets, 5 MB). | |
| values | No | Alternative to css: {colors?: string[], fontSizes?: string[], spacing?: string[], radii?: string[]}. Items may be {value, count}. |