Audit a page with pour
pour_auditAudits a URL or local HTML file against WCAG 2.2 A/AA in headless Chrome, returning each failing rule with severity, success criteria, failing elements as CSS paths, and fixes.
Instructions
Audit a URL against WCAG 2.2 A and AA (or, with wcag3, the requirements of the WCAG 3.0 draft) with the pour engine in headless Chrome: the page is loaded, the engine runs against the live DOM, and every failing rule comes back with its severity, its success criteria, the failing elements as CSS paths with the fix, and the count of rules the engine would not judge without a human. Works on a running dev server or any URL. Results depend on the page state: the viewport width (responsive pages serve different content per breakpoint), whether the page was scrolled first (lazy content), and what is open on it. Say which you used when you report a figure.
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": "pour_audit"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | No | The page to load, http or https only. A local dev server is fine (http://localhost:8080/). Without a scheme, https is tried first, then http. For a file on disk use path instead: file:// URLs are refused. | |
| path | No | A file on disk to check instead of a URL, relative to the folder the server was started in. It is served over http from its own folder, so relative assets load. Give one of url or path, not both. | |
| root | No | With path: the folder to serve as the site root, for a page whose assets are addressed from the root (/styles.css) rather than from its own folder. Defaults to the file's own folder. | |
| wcag3 | No | Audit against the WCAG 3.0 Working Draft instead of WCAG 2.2 A and AA: core checks its core requirements, supplemental its core and supplemental ones. An unfinished standard: WCAG 2 rules matched to draft requirements, never grounds for a conformance claim. Leave unset unless WCAG 3 is asked for. | |
| detail | No | summary: totals only. rules: one entry per failing rule, no elements. elements (default): up to maxNodes elements per rule. | |
| scroll | No | Scroll through the page first so lazy-loaded content is in the DOM. Changes the numbers, by design. Default false. | |
| waitMs | No | Extra settle time after the page loads, in milliseconds. Default 0. | |
| exclude | No | A CSS selector. Matching elements, and everything inside them, are left out of every rule. | |
| insecure | No | Ignore TLS certificate errors, for a dev server with a self-signed certificate. Default false. | |
| maxNodes | No | Elements shown per rule at detail "elements". Default 5. 0 shows every element. | |
| viewport | No | Viewport as WxH. Default 1440x900. Responsive pages serve different content per width, so the width is part of the result. | |
| timeoutMs | No | Navigation timeout in milliseconds. Default 30000. | |
| bestPractices | No | Also run the best-practice rules (heading order, landmarks, redundant ARIA). Default false. |