Review a page
review_pageChecks a page you composed before the user sees it. Pass the direction_id and the files you wrote, each with its content (page file, block files, CSS). Returns findings, each with severity, file and line, the problem and the exact fix: contrast below WCAG AA, also across the whole page where sections with different backgrounds meet (text inheriting the page colours onto a band, components fitted for the page placed on an opposite band, elements pulled across a section edge), colours outside the direction, more than one statement piece on a screen, images without alt, missing landmarks or skipped headings, motion without a reduced-motion fallback, widths that overflow a 375px phone, placeholder copy, missing licence headers. When this server can render, also screenshots at 1440 and 375px and what it measured there (sideways scroll, clipped or overlapping text, small tap targets, real contrast). Free; fix every high finding, then review again.
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": "review_page"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| page | No | Instead of files: an object that holds them, { files: [{ path, content }] }. | |
| entry | No | Optional: the path of the file that renders the page, when it is not page.tsx, App.tsx or index.tsx. | |
| files | No | The page file, its block files and any CSS it imports. Installed component files are optional (without them each shows as a labelled box in the screenshot). | |
| widths | No | Optional screenshot widths in px (default [1440, 375]). | |
| direction_id | No | The direction the page was composed for. |