a11y-toolkit: PDF accessibility screening
a11y_audit_pdfScreen local PDFs for accessibility failures: tagged structure, title, language, alt text, scanned text layers, encryption, and unlabeled form fields. Use it to catch blockers before full PDF/UA validation.
Instructions
PDF accessibility screening — the space nobody automated (axe, pa11y, Lighthouse: HTML only). Zero-dep structural first pass on a LOCAL file: tagged tree (/StructTreeRoot — the root failure), title, language, outline, /Alt entries, text layer (scanned detection), encryption, and AcroForm fields without accessible labels (/TU — what a screen reader announces; 3.3.2 inputs, 4.1.2 buttons). Full PDF/UA conformance needs a spec validator (veraPDF); this finds the failures that make full validation pointless. Use for enterprise document pipelines and PDFs linked from the audited site. Returns JSON: {mode: "pdf", pages, tagged, lang, title, images, alt_entries, form_fields, form_labels, findings, summary, limits}.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"path": "<path>"
},
"name": "a11y_audit_pdf"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| lang | No | output language | |
| path | Yes | local PDF file path (never fetched remotely — download it yourself first) |