Keyboard focus check (WCAG 2.1.1 / 2.1.2 / 2.4.3 / 2.4.7 / 2.4.11 / 2.4.12 / 2.4.13 / 3.2.1)
check_keyboard_focusPresses Tab through a page to record keyboard focus order and detect missing focus indicators, focus traps, hidden elements, unreachable controls, and focus-triggered context changes.
Instructions
Presses Tab through the whole page and records the focus order. Detects elements with no focus indicator, elements hidden behind a fixed header or similar, places focus cannot leave, controls the keyboard cannot reach, and context changes triggered by focus alone. data.sequence lists the focus order so you can judge whether it makes sense.
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_keyboard_focus"
}
}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. | |
| waitMs | No | Extra time to wait after load, in milliseconds. | |
| maxSteps | No | Maximum number of Tab presses. Default 150. | |
| waitForSelector | No | After load, wait until an element matching this CSS selector appears. Use it to wait for an SPA to render. |