Accessibility Fix Plan Generator
generate_fix_planGenerate a structured accessibility fix plan from a scan result and write it to .navable-plan.json for actionable remediation.
Instructions
Convert a scan result into a structured AccessibilityFixPlan and write it to .navable-plan.json.
PREFERRED WORKFLOW:
Call run_accessibility_scan — it returns a "scanId" field in the result.
Call generate_fix_plan with { scanId: "<value from step 1>" }. The scanId lookup is server-side — no need to pass the full scan JSON back.
FALLBACK WORKFLOW: Pass the full scan JSON as { scan: }. Use only when the scanId is no longer available (server was restarted; last 10 scans are kept).
WRITE LOCATION: Writes .navable-plan.json to the project root (auto-detected via package.json / .git walk-up). If the file ends up in the wrong place, set the NAVABLE_PROJECT_ROOT environment variable in your MCP server config to the absolute path of your project directory.
RESPONSE: Always includes "planPath" — the absolute path where the file was written. On write failure, returns an error with the attempted path and instructions to set NAVABLE_PROJECT_ROOT.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| scan | No | Fallback: full JSON output from run_accessibility_scan. Use only when scanId is unavailable (e.g. server was restarted). | |
| scanId | No | Preferred: the "scanId" value from run_accessibility_scan output. Avoids passing the full scan object through MCP parameters. | |
| compact | No | Return compact summary (default: true). When true and writeToDisk is true, returns only planPath + summary + top 5 items. Set to false for the full plan in the response. | |
| writeToDisk | No | Write .navable-plan.json to project root (default: true). Set NAVABLE_PROJECT_ROOT env var in MCP config to control the write location. |