AudioEye Accessibility Testing
v6.2.0Scans live pages with the AudioEye rules engine and maps accessibility issues to JSX source.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
audioeye_open_browser Open AudioEye browser
Launch (or focus) the AudioEye-controlled Chrome window with a persistent profile. Optionally navigate to a URL. Use this first when the user needs to authenticate before scanning — the browser stays open so the user can log in interactively, and the profile persists across MCP sessions so subsequent scans skip login.
| Parameter | Type | Description |
|---|---|---|
url | string | Optional URL to navigate to after the browser is open. |
audioeye_scan Run an accessibility scan
Run an AudioEye accessibility scan on the session's tab (or navigate it to `url` first). Returns the scan report as Markdown: failure counts and tables of failures by rule, with source links and selectors. Every report is also saved to `.agent/a11y-scans/<session>/scan-<n>.md` and the result always links it; a report too long for the chat is replaced by a short header with that link. Every scan is saved in full to `scan-<n>.json` beside it, and the result always links that file too: read it for component keys, file paths, rule metadata and `sourceFixGuidance`. Do NOT re-emit the scan via a Wri…
| Parameter | Type | Description |
|---|---|---|
forceReload | boolean | When true, reload the page before scanning. Default: false — a matching `url` (or omitted `url`) scans the existing DOM without reloading. Use this only when the `staleMutatedDom` diagnostic told yo… |
inspector | boolean | Overrides the `inspector` config key for this scan: `false` skips injecting the in-page inspector panel, `true` forces it in any headful Chrome (the panel goes only in the tab this session opened); he… |
runOptions | object | Partial AudioEye SDK RunOptions. Sensible defaults applied. |
url | string | Optional URL to load in the session's tab before scanning. If omitted, scans the session's tab as is. |
viewport | object | CSS-pixel viewport to set on the scanned tab before navigating and scanning, e.g. `{ width: 390, height: 844 }`. It stays on that tab for later scans. |
waitForReadyMs | integer | Maximum milliseconds to wait for the page before scanning (default 5000); a cap, not a fixed delay. The scan starts sooner, once the body shows text or media and no network request has been in flight… |
audioeye_inspect Inspect a scanned component
Select a component in the AudioEye inspector panel on the last scanned page: scrolls its `instance` (0-based, default 0) into view, outlines it on the page, highlights it in Chrome DevTools and opens the panel on that component. Use it to show the user "that button" without them touching the panel. Requires a scan with the inspector mounted; `componentKey` comes from `componentClusters` in the latest saved scan JSON.
| Parameter | Type | Description |
|---|---|---|
componentKey * | string | `componentKey` of a component from the latest saved scan JSON. |
instance | integer | 0-based instance index; default 0. |
audioeye_get_rule_metadata Look up rule metadata
Look up rule metadata (title, description, fixAtSource, sourceFixGuidance, severity, classification, wcagCriteria) for one or more ruleCodes. The saved scan JSON linked from each `audioeye_scan` report embeds trimmed metadata for every failed rule under `metadata[ruleCode]`; call this tool when that file is not at hand or its guidance was truncated. Every known ruleCode resolves from the built-in rule catalogue even before the first scan; scans in the current process enrich those entries. Only an unrecognized ruleCode appears in `missing`.
| Parameter | Type | Description |
|---|---|---|
ruleCodes * | array | Array of ruleCodes to look up. Required and non-empty. |
audioeye_get_source_context Read source context
Read the source code surrounding a `DebugSource` from a previous scan. Returns ±contextLines around `source.lineNumber`, the absolute file path, the line range actually returned (clamped to file bounds), and `resolvedRoot`, the checkout holding the file. A source that lives in a checkout outside the workspace is refused with an error naming that checkout. Use this before proposing a fix so your edits land in the right component — do not guess at the surrounding code.
| Parameter | Type | Description |
|---|---|---|
source * | object | A `DebugSource` from a previous scan response. |
contextLines | integer | Lines of context above and below the target line. Default 20. |
audioeye_verify_fix Verify a fix
Re-scan the page after applying a fix and report whether the targeted `(ruleCode, source.fileName, source.lineNumber)` failure is gone. Use this *immediately* after applying a fix the user approved — do not skip the verify step, and do not declare the fix landed without it. Returns `resolvedAtSource: true` when no failure within ±15 lines of the source still fails (tolerance accommodates JSX shifts from wrapping elements / prop reflow).
| Parameter | Type | Description |
|---|---|---|
ruleCode * | string | The ruleCode of the failure you just attempted to fix. |
source * | object | The DebugSource of the failed instance you targeted in the fix. |
url | string | Optional URL to load in the session's tab before re-scanning. Omit to re-scan the session's tab. |
viewport | object | CSS-pixel viewport to set on the scanned tab before navigating and scanning, e.g. `{ width: 390, height: 844 }`. It stays on that tab for later scans. |
waitForReadyMs | integer | Maximum milliseconds to wait for the page before scanning (default 5000); a cap, not a fixed delay. The scan starts sooner, once the body shows text or media and no network request has been in flight… |
audioeye_get_a11y_facts Get accessibility facts
Compute the assistive-tech facts for an element in the session's tab: computed accessible name (always a string; "" means the tree computed no name), computed role, resolved aria-* attributes, plus nearest-landmark and nearest-focusable-ancestor context (each present only when such an ancestor exists; the element itself is never its own focusable ancestor). Use this BEFORE proposing an aria-label / role fix — an outerHTML snippet does not tell you what AT users actually hear, and the element may already be labelled by an ancestor.
| Parameter | Type | Description |
|---|---|---|
cssSelector * | string | CSS selector identifying the element to inspect. Prefer the `cssSelector` field on a scan failure (full, untruncated) over `cssSelectorTail` (display-truncated to 120 chars and may begin with `…`, s… |
audioeye_close_browser Close AudioEye browser
Shut down the AudioEye-controlled Chrome window. The persistent profile is preserved on disk so the user does not have to log in again next session.
audioeye_login Sign in to AudioEye
Sign in to AudioEye via browser device-pairing (no terminal needed). First call returns a portal URL and a short code to confirm there, then polls in the background and stores the SDK credentials on approval — call again to check progress. Reports signed_in / pending / expired / denied. Re-validates stored credentials on every call and starts a new sign-in when they no longer work.