suggest_fix
Generate idiomatic search/replace patches for UX and accessibility findings. Detects framework from package.json and returns patch, confidence, and human review flag. Supports single or batch fixes.
Instructions
[fix] PRIMARY framework-aware fix generator. Pass finding_id + audit_id to get an idiomatic search/replace patch (React/Next/Vue/Angular/Svelte/Nuxt detected via nearest package.json). Returns patch + confidence + framework_confidence + needs_human_review. Single (default) or batch (multiple finding_ids). Pipe output into generate_pr or run_verification_suite. vs generate_patch: that's the legacy issue/job ID variant.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| finding_id | No | Finding ID to fix (single mode) | |
| audit_id | Yes | Audit ID containing the finding(s) | |
| finding_ids | No | Multiple finding IDs (batch mode) | |
| file_content | No | Source file content for better patch accuracy | |
| file_path | No | Source file path |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |