Skip to the content.

Tools reference

← Home

All tools return JSON. On failure they return { "error": "<what went wrong and how to fix it>" } and the server keeps running.

audit

Runs axe-core on one page in headless Chromium.

Input Type Default Notes
url string — http(s):// or file:// — give exactly one of url, filePath, html
filePath string — An .html file inside the project
html string — Raw HTML. Relative CSS/images may not load, so contrast results can be wrong
tags string[] wcag2a, wcag2aa, wcag22aa axe rule tags
screenshots boolean true Element screenshot with 8px padding (PNG)
waitFor string — CSS selector to wait for (SPAs that render late)
timeoutMs number 30000 Page load timeout

Returns an AuditResult and saves it to a11y-reports/results/<YYYYMMDD-HHmm>.json.

keyboard_audit

Presses Tab through the page and records where focus goes.

Input Type Default Notes
url string — http(s):// or file://
maxTabs number 200 Safety limit on Tab presses
waitFor string — CSS selector to wait for
screenshots boolean true Screenshot each problem element
timeoutMs number 30000 Page load timeout
Rule Severity WCAG Finds
keyboard-unreachable critical 2.1.1 Element with a click handler, onclick or its own cursor: pointer that never gets focus (“verify” — it is a heuristic)
keyboard-trap critical 2.1.2 Tab and Shift+Tab cannot leave a group of elements
focus-not-visible serious 2.4.7 No change in outline, box-shadow, border or background when focused
focus-order moderate 2.4.3 tabindex > 0, or focus jumps more than 200px back up the page
focus-hidden serious 2.4.11 Focused element is off-screen, zero-size, or completely covered

Returns an AuditResult with focusPath (selectors in the order they got focus) and every issue foundBy: "keyboard". axeVersion is "n/a".

map_to_source

Finds the component file and template line that rendered each element. The app must run in dev mode.

Input Type Default Notes
url string — The running page
selectors string[] — Give exactly one of selectors, resultFile
resultFile string — A saved result: maps every issue and writes sourceFile + sourceConfidence into it
projectDir string project root Folder to search; must be inside the project
timeoutMs number 30000 Page load timeout

Returns { mappings, updatedResultFile, notes }; each mapping has selector, framework (angular / vue / unknown), component, sourceFile (path:line, relative to the project root) and confidence:

export_report

Input Type Default Notes
resultFiles string[] — Result files from audit / keyboard_audit
formats ("xlsx" | "md")[] both  
title string the audited URL  

Returns { "files": ["a11y-reports/report-….xlsx", "…md"], "totalIssues": 12 }. See Reports.

Errors

Message Fix
Provide exactly one of url, filePath or html. Pass one source
Invalid URL: … Use http(s):// or a file path. Check the URL
Could not load … within …ms. Is your dev server running? Start the app, or raise timeoutMs
Selector … not found; check it or remove waitFor. Fix or drop waitFor
File not found: … Use a path inside the project. Use a project-relative path
Run npx -y a11y-trace-mcp install-browser … Download the browser once
No dev-mode info found. Run the app with ng serve / npm run dev … Shown in notes; results fall back to low confidence
Result file not found: … Run audit first. Use a resultFile returned by an audit
Supported formats: xlsx, md. Use xlsx and/or md

Next: Reports