a11ied
v0.4.0WCAG lookup, axe scans, VoiceOver/NVDA/TalkBack sessions, and agent-driven WCAG audits
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
doctor Doctor
Check prerequisites for scans, reader sessions, or desktop audits. Recording is checked only when requested.
| Parameter | Type | Description |
|---|---|---|
recording | boolean | |
target | string | |
task | string |
wcag_show WCAG show
Show one WCAG criterion by id (such as "1.4.3") or slug (such as "contrast-minimum"), with its techniques, failures, test method, testing strategy, and a short excerpt of its Understanding document. Set includeUnderstanding to true for the full Understanding document text, the primary source for how to fix a violation. A technique or failure id (such as "G18" or "F65") returns the technique, the criteria that list it, and the technique's full body text when the sync fetched one. Matches the CLI wcag show <criterion> and wcag understanding <criterion> commands.
| Parameter | Type | Description |
|---|---|---|
criterion * | string | |
includeUnderstanding | boolean | Include the full Understanding document text and its source metadata. |
version | string |
wcag_criteria WCAG criteria
List WCAG criteria. Omit level to list every criterion. Set level to A, AA, or AAA to filter. Set summary to return how many criteria are automated, hybrid, and manual per level instead of the list. Matches the CLI wcag criteria [--level] [--summary] command.
| Parameter | Type | Description |
|---|---|---|
level | string | |
summary | boolean | |
version | string |
search Search
Search the pinned WCAG corpus and the ARIA Authoring Practices Guide together and return one ranked list. Each row says which corpus it came from in kind: criterion, technique, failure, axe-rule, pattern, or example. Use kind to scope the search to one of those. Use this when you have a description rather than an id. Matches the CLI search command.
| Parameter | Type | Description |
|---|---|---|
query * | string | |
kind | string | |
limit | integer | |
version | string |
wcag_rule WCAG rule
Map one axe-core rule id (such as "color-contrast") to the WCAG criteria it covers, the techniques and failures for those criteria, and the rule's fix guidance from axe-core. Matches the CLI wcag rule <ruleId> command.
| Parameter | Type | Description |
|---|---|---|
ruleId * | string | |
version | string |
pattern_show ARIA pattern show
Show one ARIA Authoring Practices Guide pattern by id (such as "combobox") with the guide's own text for it, in sections: About This Pattern, Keyboard Interaction, and WAI-ARIA Roles, States, and Properties, plus the examples the guide publishes for it. Or show one example by id (such as "combobox-select-only") with its keyboard support table and its role, property, state, and tabindex table. Read this before writing or reviewing a custom widget rather than recalling the pattern. Omit name to list every pattern. Matches the CLI pattern <name> and pattern list commands.
| Parameter | Type | Description |
|---|---|---|
name | string | A pattern id or an example id. Omit to list every pattern. |
pattern_find ARIA pattern find
List the APG examples filed under one ARIA role (such as "combobox") or one property or state (such as "aria-expanded"). Use it to go from a role seen in an accessibility tree to the pattern that documents it. Give exactly one of role or attribute. Matches the CLI pattern role <role> and pattern attribute <attribute> commands.
| Parameter | Type | Description |
|---|---|---|
attribute | string | |
role | string |
pattern_check ARIA pattern check
Check one widget on a page against one APG example. Presses every key the example declares and checks its documented attributes. Returns exitCode 4 for the two findings it will defend: a declared key that changed nothing, and an attribute pointing at an id the document does not have. Every other key comes back with what changed next to the guide's own description, for you to judge; an attribute the example documents that the widget never sets is listed in applicabilityHints rather than failed. selector is required and must match one element. Matches the CLI pattern check command.
| Parameter | Type | Description |
|---|---|---|
pattern * | string | The APG example id to check against, such as combobox-select-only. |
selector * | string | CSS selector for the one widget to check. Required. |
click | string | A selector for the one element to click after the page loads, to open a widget the page renders only after a click. |
html | string | Inline HTML markup to load instead of target. |
setup | string | Comma separated chords to press before checking. |
table | string | Probe a later keyboard table by name instead of the first. |
target | string | An http(s) URL or a local file path. |
timeoutMs | integer | Timeout for loading the target, in milliseconds. Defaults to 10000. |
pattern_record ARIA pattern record
Record what you decided about one row of an APG example that pattern_check could not decide. Record inapplicable when the component does not implement that part of the pattern, and say why in the note. If you have no reason to give, record nothing. The next check sets the row aside until the component changes, at which point the judgment expires and the row counts again. Matches the CLI pattern record command.
| Parameter | Type | Description |
|---|---|---|
outcome * | string | |
pattern * | string | The APG example the row belongs to. |
row * | string | The row key, such as combobox-key-home[5]. |
selector * | string | The same widget selector the check used. Its accessibility tree is hashed with the judgment. |
assertedBy | string | |
click | string | The same click the check used, so the same widget is hashed. |
html | string | Inline HTML markup to load instead of target. |
mode | string | |
note | string | |
pointer | string | |
resultsFile | string | |
subjectHash | string | |
target | string | An http(s) URL or a local file path. |
timeoutMs | integer | Timeout for loading the target, in milliseconds. Defaults to 10000. |
pattern_pending ARIA pattern pending
List the rows of one APG example that have no current judgment for this widget. Matches the CLI pattern pending command.
| Parameter | Type | Description |
|---|---|---|
pattern * | string | |
selector * | string | The same widget selector the check and record calls used. |
click | string | |
html | string | Inline HTML markup to load instead of target. |
resultsFile | string | |
target | string | An http(s) URL or a local file path. |
timeoutMs | integer | Timeout for loading the target, in milliseconds. Defaults to 10000. |
run_axe Run axe
Run axe-core against a target: an http(s) URL, a local file path (target), or inline HTML (html). Omit criterion, level, and ruleIds to run every mapped rule, the same as the CLI axe command with no filter. The result carries a verdict.passed field and the tool returns exitCode 4 (the CLI assertion exit code) when a violation at or above failOn (default minor) is not covered by baseline, and 0 otherwise.
| Parameter | Type | Description |
|---|---|---|
baseline | object | Accepted findings that do not count toward the exit code. |
click | string | A selector for the one element to click after the page loads, before the scan. |
cookies | array | Cookies to set before loading the target. |
criterion | Limit the run to one WCAG criterion id or slug. | |
exclude | string | Exclude elements matching this CSS selector from the scan. |
failOn | string | Only fail on violations at or above this impact. Defaults to minor. |
headers | object | Extra request headers to send when loading the target. |
html | string | Inline HTML markup to load instead of target. |
level | string | Limit the run to one WCAG level. |
ruleIds | array | Limit the run to these explicit axe rule ids. |
selector | string | Scope the scan to elements matching this CSS selector. |
target | string | An http(s) URL or a local file path. |
timeoutMs | integer | Timeout for loading the target, in milliseconds. Defaults to 10000. |
version | string | |
viewport | object | Browser viewport to render the page at. |
waitFor | string | Wait for an element matching this CSS selector before scanning. |
tree Accessibility tree
Print the accessibility tree for a target: an http(s) URL, a local file path (target), or inline HTML (html). role and name each keep only matching nodes and their ancestors. Uses Playwright ariaSnapshot(), so JavaScript-rendered content is included.
| Parameter | Type | Description |
|---|---|---|
click | string | A selector for the one element to click after the page loads, before reading the tree. |
html | string | Inline HTML markup to load instead of target. |
name | string | Keep only nodes whose accessible name contains this text. |
role | string | Keep only nodes with this role. |
target | string | An http(s) URL or a local file path. |
timeoutMs | integer | Timeout for loading the target, in milliseconds. Defaults to 10000. |
check Check one page
Scan an http(s) URL, a local file path (target), or inline HTML (html) during development. Runs axe against every mapped rule and returns an accessibility tree summary, the relevant criteria, and a per-criterion rollup. The result carries verdict.passed and nextCommands, and the tool returns exitCode 4 (the CLI assertion exit code) when an axe violation at or above failOn is not covered by baseline, and 0 otherwise. A clean scan never passes a criterion. Use the audit tools for a tracked WCAG audit with judged outcomes.
| Parameter | Type | Description |
|---|---|---|
baseline | object | Accepted axe findings that do not count toward the exit code. |
failOn | string | Only fail on axe violations at or above this impact. Defaults to minor. |
html | string | Inline HTML markup to load instead of target. |
level | string | Check WCAG through this level: A, AA, or AAA. |
storageStatePath | string | |
target | string | An http(s) URL or a local file path. |
timeoutMs | integer | Timeout for loading the target, in milliseconds. Defaults to 10000. |
version | string |
capture Capture a page
Load a page, put it in a condition, and save a PNG screenshot: a viewport size, a zoom factor, WCAG text spacing, after clicking an element, after pressing keys such as "Tab*4", or while hovering. Returns the file path, the focused element with whether it is in view or covered and its outline, and the horizontal overflow in pixels. Same as a1 capture.
| Parameter | Type | Description |
|---|---|---|
out * | string | PNG file to write. |
url * | string | |
click | array | Elements to click in order, to open a menu, dialog, or widget. |
fullPage | boolean | |
hover | string | |
press | array | |
selector | string | Capture this element, outlined, with some of the page around it. |
storageStatePath | string | |
textSpacing | boolean | |
timeoutMs | integer | |
viewport | string | WIDTHxHEIGHT, such as 320x800. |
waitFor | string | |
zoom | number |
audit_init Start an audit
Create a WCAG audit of a website, page, feature, or mobile app with a fixed scope. The scope is every criterion at the level unless criteria or passes narrows it. Add pages next with audit_discover or audit_page. Matches the CLI audit init command.
| Parameter | Type | Description |
|---|---|---|
target * | string | A URL, an app name, or a short description. |
access | string | How to reach the target. |
criteria | array | |
id | string | |
level | string | |
name | string | |
page | boolean | Add the target as the only page. |
passes | array | |
platform | string | |
rules | array | Restrictions every worker must follow. |
wcagVersion | string |
audit_list List audits
List the audits in the workspace with their progress.
audit_page Manage audit pages
Add, list, exclude, or include the pages, screens, states, and flows an audit covers. For add, locator is a URL or how to reach the screen, and notes carries setup or flow steps. Matches the CLI audit page commands.
| Parameter | Type | Description |
|---|---|---|
action * | string | |
audit | string | Audit id or directory. Defaults to $A11IED_AUDIT, then the only audit in the workspace. |
group | string | |
kind | string | |
locator | string | |
name | string | |
notes | string | |
page | string | Page ID for exclude and include. |
passes | array | |
reason | string | Required for exclude. |
audit_discover Discover pages for an audit
Read the sitemap and crawl same-origin links, then add each reachable page to the audit. Matches the CLI audit discover command.
| Parameter | Type | Description |
|---|---|---|
audit | string | Audit id or directory. Defaults to $A11IED_AUDIT, then the only audit in the workspace. |
dryRun | boolean | |
exclude | array | |
include | array | |
maxPages | integer | |
storageStatePath | string | |
url | string |
audit_scan Run the automated checks for an audit
Run axe-core and page measurements on every web page in parallel. Failures axe is certain of become findings; everything else becomes signals in work packets. The scan never passes a criterion. Matches the CLI audit scan command.
| Parameter | Type | Description |
|---|---|---|
audit | string | Audit id or directory. Defaults to $A11IED_AUDIT, then the only audit in the workspace. |
concurrency | integer | |
pageIds | array | |
storageStatePath | string | |
timeoutMs | integer |
audit_next Claim the next audit unit
Claim one unit of audit work, a test pass on one page, and return its work packet: procedure, criteria to decide, scan signals, known findings, and how to submit. A worker that already has a unit gets the same unit back. Returns no packet when nothing is available. Matches the CLI audit next command.
| Parameter | Type | Description |
|---|---|---|
worker * | string | A stable name for this worker, such as w1. |
audit | string | Audit id or directory. Defaults to $A11IED_AUDIT, then the only audit in the workspace. |
excludePasses | array | |
leaseMinutes | integer | |
pageId | string | |
passes | array | |
unitId | string |
audit_show Show an audit unit
Return a unit and its work packet without claiming it.
| Parameter | Type | Description |
|---|---|---|
unit * | string | Unit id, such as P1.keyboard. |
audit | string | Audit id or directory. Defaults to $A11IED_AUDIT, then the only audit in the workspace. |
audit_submit Submit an audit unit
Hand in a unit: an outcome and note for every criterion, any findings, the states tested, and any dismissals. A finding with a screenshot spec gets a cropped picture of its element as evidence. Accepted or rejected as a whole; a rejection lists every problem. Matches the CLI audit submit command.
| Parameter | Type | Description |
|---|---|---|
submission * | object | |
unit * | string | Unit id, such as P1.keyboard. |
worker * | string | A stable name for this worker, such as w1. |
audit | string | Audit id or directory. Defaults to $A11IED_AUDIT, then the only audit in the workspace. |
audit_note Report progress on an audit unit
Keep a claim alive and log what the worker is doing.
| Parameter | Type | Description |
|---|---|---|
unit * | string | Unit id, such as P1.keyboard. |
worker * | string | A stable name for this worker, such as w1. |
audit | string | Audit id or directory. Defaults to $A11IED_AUDIT, then the only audit in the workspace. |
message | string |
audit_block Block an audit unit
Park a unit that cannot be tested until a person acts. When only some criteria are affected, submit the unit with those criteria as cannot-tell instead.
| Parameter | Type | Description |
|---|---|---|
reason * | string | |
unit * | string | Unit id, such as P1.keyboard. |
audit | string | Audit id or directory. Defaults to $A11IED_AUDIT, then the only audit in the workspace. |
worker | string |
audit_limitation Record an audit limitation
Record something the whole audit could not test, such as no screen reader or no physical device. The report lists it under Not verified. For a gap on one page, submit the criterion as cannot-tell instead. Pass remove (a 1-based position) instead of text to drop a limitation once that testing is done.
| Parameter | Type | Description |
|---|---|---|
audit | string | Audit id or directory. Defaults to $A11IED_AUDIT, then the only audit in the workspace. |
criterion | string | |
remove | integer | |
text | string |
audit_reopen Reopen an audit unit
Put a blocked or finished unit back in the queue.
| Parameter | Type | Description |
|---|---|---|
reason * | string | |
unit * | string | Unit id, such as P1.keyboard. |
audit | string | Audit id or directory. Defaults to $A11IED_AUDIT, then the only audit in the workspace. |
audit_findings List or show audit findings
List the findings recorded so far, or show one with its occurrences when finding is given.
| Parameter | Type | Description |
|---|---|---|
audit | string | Audit id or directory. Defaults to $A11IED_AUDIT, then the only audit in the workspace. |
criterion | string | |
finding | string | |
includeDismissed | boolean | |
pageId | string |
audit_finding Curate an audit finding
Dismiss a finding as wrong, merge duplicates into it, or rewrite its title, severity, text, or the reason it fails each criterion.
| Parameter | Type | Description |
|---|---|---|
action * | string | |
finding * | string | |
audit | string | Audit id or directory. Defaults to $A11IED_AUDIT, then the only audit in the workspace. |
description | string | |
from | array | Findings to merge into this one. |
impact | string | |
pageId | string | Dismiss on this page only. |
reason | string | Required for dismiss. |
reasons | object | How the defect fails each criterion, by criterion id: what the criterion requires and what the page does instead. |
recommendation | string | |
severity | string | |
title | string |
audit_status Audit status
Progress of an audit: units done, active workers, blocked units and why, findings, criteria standings, and recent activity. Set units to list every unit, or log to return more of the activity log.
| Parameter | Type | Description |
|---|---|---|
audit | string | Audit id or directory. Defaults to $A11IED_AUDIT, then the only audit in the workspace. |
limit | integer | |
log | boolean | |
unitId | string | Limit the log to one unit. |
units | boolean |
audit_signals Audit scan signals
The facts the automated scan collected for one page.
| Parameter | Type | Description |
|---|---|---|
page * | string | |
audit | string | Audit id or directory. Defaults to $A11IED_AUDIT, then the only audit in the workspace. |
kind | string |
audit_report Build the audit report
Write the audit report as HTML, Markdown, and JSON and return the file paths. Before every unit is done the report is marked interim. Matches the CLI audit report command.
| Parameter | Type | Description |
|---|---|---|
audit | string | Audit id or directory. Defaults to $A11IED_AUDIT, then the only audit in the workspace. |
embedEvidence | boolean | |
formats | array | |
outDir | string |
sr_session Screen reader session
Manage the one active screen reader session (matching a1 sr start/open/stop/status). The session carries targetType (real or simulated). Actions: start: start session on target (voiceover, nvda, virtual; url opens page, app names native app). open: navigate active session to url. stop: stop session (out writes .json/.md transcript). status: read session metadata or { noSession: true }.
sr_action Screen reader action
Run one action against active sr session (start with sr_session first). Actions: next (Move to next item or element kind), previous (Move to previous item or kind), navigate (Step to matching role/name), act (Activate current item), press (Press key chords in order), type (Type text into field), perform (Run named command from sr_list), click (Click current item), interact (Enter interaction mode), stopInteracting (Leave interaction mode), takeSnapshot (Capture screenshot/state). Returns exitCode 0 on success, or 4 on assertion mismatch.
sr_list Screen reader commands
List the named commands sr_action's "perform" runs, grouped by command set and by what they do. Matches the CLI a1 sr list command. Start with query. The unfiltered list is over 400 entries. Run one with sr_action { action: "perform", payload: { command, commandSet } }.
| Parameter | Type | Description |
|---|---|---|
commandSet | string | Command set: auto, portable, voiceover-commander, voiceover-keycode, or nvda-keycode. |
query | string | Keep only commands whose name, key sequence, or Commander phrase contains this text. |
sr | string | Filter by screen reader: voiceover, nvda, or virtual. |
sr_expect Screen reader expect
Check that the active sr session announced a phrase matching pattern (text, ignoring case, or /regex/flags). Matches the CLI a1 sr expect command. since limits the check to phrases after that checkpoint label. Set not to true to pass when the phrase was NOT announced instead. The result carries exitCode 4 (the CLI assertion exit code) and a message when the check failed, and exitCode 0 when it passed.
| Parameter | Type | Description |
|---|---|---|
pattern * | string | Text (case-insensitive) or /regex/flags to match. |
not | boolean | Pass when the phrase was not announced. |
since | string | Only count phrases after this checkpoint label. |
timeoutMs | integer |
sr_transcript Screen reader transcript
Print what the active sr session's reader said, with timestamps and checkpoints. Matches the CLI a1 sr transcript command. since keeps only entries after that checkpoint label. tail keeps only the last N phrases. afterIndex pages forward by session index, defaulting to 200 entries. limit caps entries including checkpoints. transcript.window discloses omitted entries and the next index. out also writes the transcript to a .json or .md path.
| Parameter | Type | Description |
|---|---|---|
afterIndex | integer | Entries after this session transcript index; -1 starts at the beginning. |
format | string | Transcript format. Defaults to the out extension. |
limit | integer | Maximum entries, including checkpoints. |
out | string | Also write the transcript to this .json or .md path. |
since | string | Entries after the last matching checkpoint. |
tail | integer | Last N phrases, including intervening checkpoints. |
timeoutMs | integer |
talkback TalkBack
Turn TalkBack on or off on an Android device over adb, or walk the screen with a key and return what TalkBack said after each press. Needs a phone or a Google Play emulator image, with TalkBack Developer settings > Log output level set to VERBOSE.
| Parameter | Type | Description |
|---|---|---|
action * | string | |
count | integer | |
key | string | |
serial | string |