Design deviance
get_design_devianceMeasure how far code drifts from the design system: get a 0–100 deviance score, per-rule breakdown, trend, and top off-token findings with nearest token fixes.
Instructions
Return how far the code drifts off the design system: the latest 0–100 deviance score (lower is better; null means not scored yet), its per-rule breakdown, the score trend, a scan still running if any, the top findings (file, line, literal value, rule, and the nearest token to use instead), and the active rules (off_token_color, off_token_font, off_scale_spacing, off_scale_radius, contrast_below_aa, raw_interactive_element). Optional limit: findings to return (1–200, default 25). Returns { projectId, latest, running, trend, findings, rules }. Read-only. Use to find and fix off-token code; use get_design_tokens for the full token list.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Findings to return, 1–200 (default 25). | |
| projectId | No | Project UUID — defaults to the server-configured project when omitted (`project_id` is accepted too.) |