score_page
Score pages across 7 design categories (Structure, Typography, Color, Spacing, Accessibility, Responsive, Design Tokens) with 0-10 ratings, overall 0-100 score, and A-D grade. Accepts HTML or URL for rendered DOM scoring.
Instructions
Score an HTML/CSS page across 7 design categories (Structure, Typography, Color & palette, Spacing & rhythm, Accessibility, Responsive layout, Design tokens), each rated 0–10. Scores are derived deterministically from the same checks as audit_page — no browser required. Pass html directly, or pass url to have Raven launch headless chromium, render the page, and score the RENDERED DOM. Also returns the same overall 0–100 score and A–D grade audit_page produces, the weakest category, and the three categories Raven does not mechanically assess (brand, conversion, motion) with guidance on which tools to use for those.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | No | If set, Raven launches headless chromium, renders the page, and scores the RENDERED DOM. | |
| html | No | The full HTML content of the page to score. | |
| strict | No | Strict mode — count warnings as failures in the overall score. Default: false. | |
| containerMaxWidth | No | Your design system's canonical content-container width in px (e.g. 1152). Forwarded to the responsive/max-width check. |