a11ied

v0.4.0
io.github.hypothesi/a11ied Checked 4 hours ago Published 1 day ago

WCAG 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.

ParameterTypeDescription
recordingboolean
targetstring
taskstring

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.

ParameterTypeDescription
criterion *string
includeUnderstandingbooleanInclude the full Understanding document text and its source metadata.
versionstring

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.

ParameterTypeDescription
levelstring
summaryboolean
versionstring

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.

ParameterTypeDescription
ruleId *string
versionstring

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.

ParameterTypeDescription
namestringA 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.

ParameterTypeDescription
attributestring
rolestring

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.

ParameterTypeDescription
pattern *stringThe APG example id to check against, such as combobox-select-only.
selector *stringCSS selector for the one widget to check. Required.
clickstringA selector for the one element to click after the page loads, to open a widget the page renders only after a click.
htmlstringInline HTML markup to load instead of target.
setupstringComma separated chords to press before checking.
tablestringProbe a later keyboard table by name instead of the first.
targetstringAn http(s) URL or a local file path.
timeoutMsintegerTimeout 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.

ParameterTypeDescription
outcome *string
pattern *stringThe APG example the row belongs to.
row *stringThe row key, such as combobox-key-home[5].
selector *stringThe same widget selector the check used. Its accessibility tree is hashed with the judgment.
assertedBystring
clickstringThe same click the check used, so the same widget is hashed.
htmlstringInline HTML markup to load instead of target.
modestring
notestring
pointerstring
resultsFilestring
subjectHashstring
targetstringAn http(s) URL or a local file path.
timeoutMsintegerTimeout 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.

ParameterTypeDescription
pattern *string
selector *stringThe same widget selector the check and record calls used.
clickstring
htmlstringInline HTML markup to load instead of target.
resultsFilestring
targetstringAn http(s) URL or a local file path.
timeoutMsintegerTimeout 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.

ParameterTypeDescription
baselineobjectAccepted findings that do not count toward the exit code.
clickstringA selector for the one element to click after the page loads, before the scan.
cookiesarrayCookies to set before loading the target.
criterionLimit the run to one WCAG criterion id or slug.
excludestringExclude elements matching this CSS selector from the scan.
failOnstringOnly fail on violations at or above this impact. Defaults to minor.
headersobjectExtra request headers to send when loading the target.
htmlstringInline HTML markup to load instead of target.
levelstringLimit the run to one WCAG level.
ruleIdsarrayLimit the run to these explicit axe rule ids.
selectorstringScope the scan to elements matching this CSS selector.
targetstringAn http(s) URL or a local file path.
timeoutMsintegerTimeout for loading the target, in milliseconds. Defaults to 10000.
versionstring
viewportobjectBrowser viewport to render the page at.
waitForstringWait 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.

ParameterTypeDescription
clickstringA selector for the one element to click after the page loads, before reading the tree.
htmlstringInline HTML markup to load instead of target.
namestringKeep only nodes whose accessible name contains this text.
rolestringKeep only nodes with this role.
targetstringAn http(s) URL or a local file path.
timeoutMsintegerTimeout 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.

ParameterTypeDescription
baselineobjectAccepted axe findings that do not count toward the exit code.
failOnstringOnly fail on axe violations at or above this impact. Defaults to minor.
htmlstringInline HTML markup to load instead of target.
levelstringCheck WCAG through this level: A, AA, or AAA.
storageStatePathstring
targetstringAn http(s) URL or a local file path.
timeoutMsintegerTimeout for loading the target, in milliseconds. Defaults to 10000.
versionstring

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.

ParameterTypeDescription
out *stringPNG file to write.
url *string
clickarrayElements to click in order, to open a menu, dialog, or widget.
fullPageboolean
hoverstring
pressarray
selectorstringCapture this element, outlined, with some of the page around it.
storageStatePathstring
textSpacingboolean
timeoutMsinteger
viewportstringWIDTHxHEIGHT, such as 320x800.
waitForstring
zoomnumber

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.

ParameterTypeDescription
target *stringA URL, an app name, or a short description.
accessstringHow to reach the target.
criteriaarray
idstring
levelstring
namestring
pagebooleanAdd the target as the only page.
passesarray
platformstring
rulesarrayRestrictions every worker must follow.
wcagVersionstring

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.

ParameterTypeDescription
action *string
auditstringAudit id or directory. Defaults to $A11IED_AUDIT, then the only audit in the workspace.
groupstring
kindstring
locatorstring
namestring
notesstring
pagestringPage ID for exclude and include.
passesarray
reasonstringRequired 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.

ParameterTypeDescription
auditstringAudit id or directory. Defaults to $A11IED_AUDIT, then the only audit in the workspace.
dryRunboolean
excludearray
includearray
maxPagesinteger
storageStatePathstring
urlstring

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.

ParameterTypeDescription
auditstringAudit id or directory. Defaults to $A11IED_AUDIT, then the only audit in the workspace.
concurrencyinteger
pageIdsarray
storageStatePathstring
timeoutMsinteger

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.

ParameterTypeDescription
worker *stringA stable name for this worker, such as w1.
auditstringAudit id or directory. Defaults to $A11IED_AUDIT, then the only audit in the workspace.
excludePassesarray
leaseMinutesinteger
pageIdstring
passesarray
unitIdstring

audit_show Show an audit unit

Return a unit and its work packet without claiming it.

ParameterTypeDescription
unit *stringUnit id, such as P1.keyboard.
auditstringAudit 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.

ParameterTypeDescription
submission *object
unit *stringUnit id, such as P1.keyboard.
worker *stringA stable name for this worker, such as w1.
auditstringAudit 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.

ParameterTypeDescription
unit *stringUnit id, such as P1.keyboard.
worker *stringA stable name for this worker, such as w1.
auditstringAudit id or directory. Defaults to $A11IED_AUDIT, then the only audit in the workspace.
messagestring

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.

ParameterTypeDescription
reason *string
unit *stringUnit id, such as P1.keyboard.
auditstringAudit id or directory. Defaults to $A11IED_AUDIT, then the only audit in the workspace.
workerstring

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.

ParameterTypeDescription
auditstringAudit id or directory. Defaults to $A11IED_AUDIT, then the only audit in the workspace.
criterionstring
removeinteger
textstring

audit_reopen Reopen an audit unit

Put a blocked or finished unit back in the queue.

ParameterTypeDescription
reason *string
unit *stringUnit id, such as P1.keyboard.
auditstringAudit 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.

ParameterTypeDescription
auditstringAudit id or directory. Defaults to $A11IED_AUDIT, then the only audit in the workspace.
criterionstring
findingstring
includeDismissedboolean
pageIdstring

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.

ParameterTypeDescription
action *string
finding *string
auditstringAudit id or directory. Defaults to $A11IED_AUDIT, then the only audit in the workspace.
descriptionstring
fromarrayFindings to merge into this one.
impactstring
pageIdstringDismiss on this page only.
reasonstringRequired for dismiss.
reasonsobjectHow the defect fails each criterion, by criterion id: what the criterion requires and what the page does instead.
recommendationstring
severitystring
titlestring

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.

ParameterTypeDescription
auditstringAudit id or directory. Defaults to $A11IED_AUDIT, then the only audit in the workspace.
limitinteger
logboolean
unitIdstringLimit the log to one unit.
unitsboolean

audit_signals Audit scan signals

The facts the automated scan collected for one page.

ParameterTypeDescription
page *string
auditstringAudit id or directory. Defaults to $A11IED_AUDIT, then the only audit in the workspace.
kindstring

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.

ParameterTypeDescription
auditstringAudit id or directory. Defaults to $A11IED_AUDIT, then the only audit in the workspace.
embedEvidenceboolean
formatsarray
outDirstring

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 } }.

ParameterTypeDescription
commandSetstringCommand set: auto, portable, voiceover-commander, voiceover-keycode, or nvda-keycode.
querystringKeep only commands whose name, key sequence, or Commander phrase contains this text.
srstringFilter 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.

ParameterTypeDescription
pattern *stringText (case-insensitive) or /regex/flags to match.
notbooleanPass when the phrase was not announced.
sincestringOnly count phrases after this checkpoint label.
timeoutMsinteger

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.

ParameterTypeDescription
afterIndexintegerEntries after this session transcript index; -1 starts at the beginning.
formatstringTranscript format. Defaults to the out extension.
limitintegerMaximum entries, including checkpoints.
outstringAlso write the transcript to this .json or .md path.
sincestringEntries after the last matching checkpoint.
tailintegerLast N phrases, including intervening checkpoints.
timeoutMsinteger

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.

ParameterTypeDescription
action *string
countinteger
keystring
serialstring