a11y-toolkit: Tool router (goal or page to steps)
a11y_routeMaps a plain-language accessibility goal or page URL/HTML to an ordered sequence of toolkit steps, explaining why each step is needed and which tests to run next.
Instructions
The router — start here when unsure which tool solves a task: state the goal in plain language ("gate my PR", "fix the contrast of my hero", "generate the legal statement") and get the ordered tool sequence with the why of each step. Deterministic keyword index over the toolkit map, not an LLM guessing; when nothing matches, the honest fallback route says where everyone begins. Makes 33 specialized tools an O(1) choice — ask once instead of scanning descriptions. Optional sequential-diagnosis mode: pass url or html and the router takes the page's cheap vitals (static pass) and orders the next exams by expected yield — the evidence decides (forms → form error testing, menus → keyboard, video → caption content), severity only breaks ties; the ordered plan never replaces the full catalog. Returns JSON: {route, steps [{step, tool, why}], alternates, prompts, cli, note} — the ordered tool sequence for the goal. Diagnosis mode (url/html passed): {mode: diagnose, vitals {score, summary, signals}, symptoms [{symptom, evidence}], steps [...], guarantee} — evidence orders the exams, severity breaks ties.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "a11y_route"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | No | optional diagnosis mode: page URL — its cheap signals (static pass) order the next exams by expected yield | |
| goal | No | the task in plain language (es or en) | |
| html | No | optional diagnosis mode: inline HTML instead of a URL | |
| lang | No | Output language (en default) |