Accessibility Agents

v7.1.0
io.github.Community-Access/accessibility-agents Checked 12 hours ago Published 1 month ago

WCAG 2.2 scanners for web pages, Office, PDF, ePub and Markdown: contrast, axe, veraPDF and more.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

check_contrast Check Contrast Ratio

Calculate WCAG contrast ratio between two colors. Returns the ratio and whether it passes AA for normal text (4.5:1), large text (3:1), and UI components (3:1).

ParameterTypeDescription
background *stringBackground color as hex (e.g. "#ffffff" or "#000")
foreground *stringForeground color as hex (e.g. "#1a1a1a" or "#fff")

check_apca_contrast Check APCA Contrast (Experimental)

Calculate APCA lightness contrast between two colours, an experimental perceptual method that no WCAG standard, and not the current WCAG 3.0 draft, includes.

ParameterTypeDescription
background *stringBackground color as hex (e.g. "#ffffff" or "#000")
foreground *stringText color as hex (e.g. "#1a1a1a" or "#fff")

get_accessibility_guidelines Get Accessibility Guidelines

Get detailed WCAG AA accessibility guidelines for a specific component type. Returns requirements, code examples, and common mistakes.

ParameterTypeDescription
component *stringThe type of component to get guidelines for

check_heading_structure Check Heading Structure

Analyze HTML content for heading hierarchy issues: skipped levels, multiple H1s, missing H1.

ParameterTypeDescription
html *stringHTML content to analyze

check_form_labels Check Form Labels

Analyze HTML form inputs for missing accessible labels. Checks <label for>, aria-label, aria-labelledby, and title.

ParameterTypeDescription
html *stringHTML content to analyze

scan_office_document Scan Office Document for Accessibility

Scan a .docx, .xlsx, or .pptx file for accessibility issues. Checks title, language, alt text, headings, table headers, and more.

ParameterTypeDescription
filePath *stringAbsolute path to the Office document

scan_pdf_document Scan PDF Document for Accessibility

Scan a PDF file for accessibility issues using PDF/UA checks. Checks tagging, structure, language, alt text, bookmarks, forms, and more.

ParameterTypeDescription
filePath *stringAbsolute path to the PDF file
reportPathstringFile path to write a markdown accessibility report
sarifPathstringFile path to write SARIF 2.1.0 output

extract_document_metadata Extract Document Metadata

Extract accessibility-relevant metadata from an Office document or PDF. Returns title, author, language, page count, and accessibility property health.

ParameterTypeDescription
filePath *stringAbsolute path to the document file (.docx, .xlsx, .pptx, or .pdf)

batch_scan_documents Batch Scan Documents

Scan multiple Office and PDF documents for accessibility issues in a single call. Returns a summary with per-file results.

ParameterTypeDescription
filePaths *arrayArray of absolute file paths to scan (max 50)

run_axe_scan Run axe-core Accessibility Scan

Run an axe-core scan against a URL or HTML file and return the violations as findings.

ParameterTypeDescription
url *stringURL to scan (http or https)
excludearrayCSS selectors to exclude from scan
includearrayCSS selectors to include in scan
tagsarrayaxe-core tags to filter by (default: ["wcag2a", "wcag2aa", "wcag21a", "wcag21aa", "wcag22aa"], every WCAG 2.2 A and AA rule)

run_playwright_a11y_tree Get Accessibility Tree

Capture the accessibility tree of a page via Playwright. Shows how screen readers perceive the page structure.

ParameterTypeDescription
url *stringURL to analyze
rootstringCSS selector for subtree root

run_playwright_keyboard_scan Keyboard Navigation Scan

Test keyboard navigation by tabbing through all interactive elements on a page. Reports focus order, focus visibility, and keyboard traps.

ParameterTypeDescription
url *stringURL to test
maxTabsnumberMaximum Tab presses (default: 50)

run_playwright_contrast_scan Visual Contrast Scan

Scan a page for text elements that fail WCAG AA contrast requirements by sampling computed styles.

ParameterTypeDescription
url *stringURL to scan

run_playwright_viewport_scan Viewport Reflow Test

Load the page at 320, 768, 1024 and 1280 CSS pixels wide and report horizontal scrolling, a WCAG 1.4.10 Reflow check that does not test zoom or text resize.

ParameterTypeDescription
url *stringURL to test

run_verapdf_scan Run veraPDF PDF/UA Scan

Validate a PDF against PDF/UA with veraPDF and return the failed checks as findings.

ParameterTypeDescription
filePath *stringAbsolute path to the PDF file
flavourstringveraPDF validation flavour (default: "ua1" for PDF/UA-1)
sarifPathstringOptional path to write SARIF 2.1.0 output for CI/code scanning integration

check_verapdf_installation Check veraPDF Installation

Health check for veraPDF CLI. Auto-detects installation, reports version, checks Java dependency, and provides platform-specific installation guidance if missing.

convert_pdf_form_to_html Convert PDF Form to Accessible HTML

Extract form fields from a PDF and generate an accessible HTML representation. Useful for reviewing PDF form accessibility or migrating paper forms to web.

ParameterTypeDescription
filePath *stringAbsolute path to the PDF file

scan_epub_document Scan EPUB Document

Scan an .epub for EPUB Accessibility 1.1 conformance, reading order, navigation and metadata.

ParameterTypeDescription
filePath *stringAbsolute path to the .epub file
reportPathstringOptional path to write a markdown accessibility report
sarifPathstringOptional path to write SARIF 2.1.0 output

scan_markdown_document Scan Markdown Document

Scan a markdown file for link text, alt text, heading order, table and emoji accessibility issues.

ParameterTypeDescription
filePath *stringAbsolute path to the .md file
reportPathstringOptional path to write a markdown accessibility report

glow_health_check GLOW Health Check

Check health of a GLOW API endpoint (defaults to `https://letitglow.app/mcp`).

ParameterTypeDescription
baseUrlstringOptional GLOW API base URL
timeoutMsinteger

glow_audit_document GLOW Audit Document

Upload a document to GLOW and run accessibility audit (/audit). Supports markdown, html, and docx.

ParameterTypeDescription
filePath *stringAbsolute path to local file
format *stringDocument format
baseUrlstringOptional GLOW API base URL
timeoutMsinteger

glow_fix_document GLOW Fix Document

Upload a document to GLOW and run auto-fix workflow (/fix). Supports markdown, html, and docx.

ParameterTypeDescription
filePath *stringAbsolute path to local file
format *stringDocument format
baseUrlstringOptional GLOW API base URL
timeoutMsinteger

glow_convert_document GLOW Convert Document

Upload a document to GLOW and convert format (/convert). Supports markdown, html, and docx.

ParameterTypeDescription
filePath *stringAbsolute path to local file
fromFormat *stringSource format
toFormat *stringTarget format
baseUrlstringOptional GLOW API base URL
timeoutMsinteger

glow_generate_report GLOW Generate Report

Upload a document to GLOW and generate report output (/report). Supports markdown, html, and docx.

ParameterTypeDescription
filePath *stringAbsolute path to local file
format *stringDocument format
baseUrlstringOptional GLOW API base URL
reportTypestringReport type (default: json)
timeoutMsinteger

save_audit_result Save Audit Result

Save a scan result to the audit history so later runs can show a delta and compliance evidence stays in the repository.

ParameterTypeDescription
findingCount *numberTotal number of findings
target *stringTarget that was scanned (URL, file path, or folder path)
type *stringType of scan that produced these results
errorCountnumberNumber of error-severity findings
findingsarrayArray of individual findings (optional, for detailed storage)
gradestringLetter grade (A-F)
retentionnumberMax audits to keep per target (default: 30)
scorenumberOverall accessibility score (0-100)
toolVersionstringVersion of the scanning tool
warningCountnumberNumber of warning-severity findings

list_audit_history List Audit History

List stored accessibility audit results from .a11y-history/. Filter by scan type, target, or date range. Returns summaries with scores and finding counts.

ParameterTypeDescription
limitnumberMax results to return (default: 20, newest first)
targetstringFilter by target (exact match on path/URL)
typestringFilter by scan type

get_audit_result Get Audit Result

Retrieve a specific stored audit result by its ID. Returns the full audit record including all findings.

ParameterTypeDescription
auditId *stringAudit ID (filename without .json extension, from list_audit_history)

prune_audit_history Prune Audit History

Remove old audit results beyond the retention limit for each target. Keeps the newest N audits per target and deletes the rest.

ParameterTypeDescription
retentionnumberMax audits to keep per target (default: 30)

get_audit_trend Get Audit Score Trend

Return the score history for one target, with direction, delta and finding velocity, so a trend can be reported.

ParameterTypeDescription
target *stringTarget to compute trend for (URL or file path)
limitnumberMax historical scans to include (default: 20)

render_accessibility_report Render an accessibility report

Render a complete audit report from findings JSON. Produces every required section, computes the score and grade, and embeds the merged findings so the next run can show a delta.

ParameterTypeDescription
findings *arrayFindings payloads, each matching skills/a11y-core/schemas/findings.schema.json.
outputPathstringWhere to write the report. Defaults to the template's standard filename in the working directory.
templatestringWhich report shape to render.

fix_document_metadata Fix Document Metadata

Fix common metadata accessibility issues in Office documents: missing title, missing language, missing author. Returns a report of changes made.

ParameterTypeDescription
filePath *stringAbsolute path to the document (.docx, .xlsx, .pptx)
authorstringDocument author to set
languagestringDocument language to set (BCP 47 tag, e.g. "en-US")
titlestringDocument title to set

fix_document_headings Fix Document Headings

Analyze and report heading structure issues in Office documents with fix instructions. Detects skipped levels, missing Heading 1, visual-only formatting, and provides remediation steps.

ParameterTypeDescription
filePath *stringAbsolute path to the document (.docx)

check_audit_cache Check Audit Cache

Check whether a cached audit result exists and is still fresh for this target.

ParameterTypeDescription
filePaths *arrayArray of file paths to check against the cache
cacheFilestringPath to cache file (default: .a11y-cache.json in project root)
maxAgeDaysnumberTreat entries older than this many days as expired and needing re-scan. Default: no expiry
useContentHashbooleanUse SHA-256 content hash instead of size+mtime (more reliable but slower). Default: false

update_audit_cache Update Audit Cache

Update the component audit cache (.a11y-cache.json) after scanning files. Stores file hashes, finding counts, severity breakdown, and scan timestamp so unchanged files can be skipped on re-audit.

ParameterTypeDescription
entries *arrayArray of scan results to cache
cacheFilestringPath to cache file (default: .a11y-cache.json in project root)
useContentHashbooleanUse SHA-256 content hash instead of size+mtime. Default: false

check_color_blindness Check Color Blindness

Simulate how a color pair looks under different types of color vision deficiency (protanopia, deuteranopia, tritanopia, achromatopsia). Returns simulated colors and whether distinction is maintained.

ParameterTypeDescription
colors *arrayArray of hex colors to compare (e.g. ['#FF0000', '#00FF00'])

check_reading_level Check Reading Level

Estimate the reading level of a passage and report whether it meets the requested grade.

ParameterTypeDescription
text *stringText content to analyze

validate_caption_file Validate Caption File

Validate a WebVTT or SRT caption file for syntax errors, timing overlaps, excessive caption rate, and missing speaker identification. Helps ensure media accessibility compliance (WCAG 1.2.2, 1.2.4).

ParameterTypeDescription
filePath *stringAbsolute path to the .vtt or .srt caption file

generate_accessibility_statement Generate Accessibility Statement

Generate a W3C or EU model accessibility statement from provided information. Outputs a Markdown document ready for publishing.

ParameterTypeDescription
conformanceStatus *stringOverall conformance status
contactEmail *stringAccessibility feedback contact email
organization *stringOrganization name
websiteUrl *stringWebsite URL covered by the statement
assessmentDatestringDate of last assessment (ISO format)
assessmentMethodstringHow the assessment was conducted
compatibleWitharrayBrowsers and assistive technologies tested
conformanceLevelstringTarget WCAG level (default: AA)
formatstringStatement format: w3c (default) or eu
knownLimitationsarrayKnown accessibility limitations
technologiesarrayTechnologies relied upon (e.g. HTML5, CSS3, WAI-ARIA)