Target size, visual presentation and motion check (WCAG 2.5.5 / 2.5.8 / 1.4.8 / 2.2.2 / 1.4.2 / 1.3.5)
check_presentationDetect WCAG 2.2 presentation issues on a page: undersized or crowded tap targets, justified or poorly spaced text, motion lasting over 5 seconds, autoplaying audio, and missing autocomplete.
Instructions
Detects controls whose target is smaller than 44 × 44px, controls below 24 × 24px that are also too close to a neighbour, text that is justified or whose line height or line length is out of range, animations and other content that keep moving for more than 5 seconds (found from the declared animations and by comparing screenshots taken after 5 seconds), autoplaying media with sound, and personal-data fields without autocomplete. 2.5.5 and 1.4.8 are Level AAA criteria; 2.5.8 is a Level AA criterion of WCAG 2.2.
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_presentation"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | URL of the page to check (http, https or file). A dev server such as http://localhost:3000/ works too. | |
| width | No | Viewport width in CSS px. Default 1280. | |
| height | No | Viewport height in CSS px. Default 720. | |
| motion | No | Whether to compare screenshots to find motion made by scripts, videos, GIFs and canvas (2.2.2). It waits 5 seconds after load, so false saves about 2 seconds per page (about 6 seconds in check_presentation). Default true. | |
| waitMs | No | Extra time to wait after load, in milliseconds. | |
| waitForSelector | No | After load, wait until an element matching this CSS selector appears. Use it to wait for an SPA to render. |