Title49/100
check_design_drift
The title clearly communicates the tool’s action and subject. Keep it concise.
Description100/100
Checks candidate UI code against a reference design-token set and returns a compact, structured list of drift violations. For each: the token axis (color / radius / spacing / font / type), the value found, the expected token and its value, and the location. It reads DECLARED styles and tokens, not pixels. It is stateless (the tokens and code are passed in the call; nothing is stored) and read-only (it reports drift; it does not modify your code). Inputs: reference_tokens — the user's design system as {color:{name:hex}, radius:{name:val}, space:{name:val}, font:{name:stack}, type:{role:{size}}}; code — the CSS/markup to check; optional source ('css' or 'tailwind'). Recommended use: after you generate UI code against a design system the user has agreed to (they pasted tokens, or approved one you proposed, or described one you composed), call this before presenting the result; if violations come back, fix them and re-check until clean. The build-and-fix loop is yours; swatchdog is the instrument.
The description explains the capability, when to use it, and what to expect.
Inputs0/100
0 of 3 inputs have descriptions. Add descriptions to the missing inputs, including where to obtain IDs and how to supply values.
reference_tokens
Not provided
Missing description. Explain what this value means and how to supply it.
code
Not provided
Missing description. Explain what this value means and how to supply it.
source
Not provided
Missing description. Explain what this value means and how to supply it.
Annotations75/100
Declare destructiveHint based on the tool’s actual behavior.
{
"title": "check_design_drift",
"readOnlyHint": true,
"openWorldHint": false,
"idempotentHint": true
}Output schema4/100
Declare the result fields and their types in the output schema.
View output schema
{
"type": "object",
"title": "check_design_driftDictOutput",
"additionalProperties": true
}