Check accessibility (WCAG 2.2 AA)
check_accessibilityChecks a page for WCAG 2.2 AA accessibility issues at phone and desktop widths, including real-pixel text contrast over images, gradients, and video, then reports each problem by element and rule.
Instructions
Runs axe-core (WCAG 2.2 AA rules) on one page at phone and desktop widths, after scrolling through it so lazy and below-the-fold sections are drawn. Then measures contrast on the real pixels for every line of text axe leaves 'to review' (text over a photograph, a gradient or a video): each line against the worst of what is actually behind it. Reports each problem with the element, what is wrong and the WCAG rule. Uses the Chrome or Edge on this computer.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"url": "<url>"
},
"name": "check_accessibility"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | The page to check, for example https://example.com | |
| kind | No | Show only this kind of problem, with every example. Use a `kind` name from an earlier answer; for 15 minutes the same arguments re-read that check instead of checking again. | |
| widths | No | Check at phone width, desktop width, or both. | both |
| delay_ms | No | Pause between two requests to the site, in milliseconds (one request at a time). | |
| ignore_robots_txt | No | Read pages even where the site's robots.txt disallows crawling. Pass true only when the user has said the site is theirs or that they may test it (staging sites usually disallow everything). The report then says at the top that robots.txt was ignored. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tool | Yes | ||
| facts | Yes | ||
| notes | Yes | ||
| passed | Yes | ||
| target | Yes | ||
| reading | Yes | How to read this answer: the same lines end the text form | |
| findings | Yes | ||
| headline | Yes | ||
| checked_at | Yes | ||
| robots_txt | Yes | "ignored" only when the caller passed ignore_robots_txt | |
| from_earlier_check | Yes | True when this answer re-reads an earlier check (because `kind` was given) |