generate_patch
Generate a search/replace patch for legacy audit issues using job and issue IDs. Provides confidence score and explanation.
Instructions
[fix] LEGACY issue-based fix generator (no framework detection). Returns search/replace patch + confidence + explanation. vs suggest_fix (PREFERRED): framework-aware (React/Vue/Angular/Svelte), finding-based, JSX-idiomatic patches. Use generate_patch only for legacy job_id/issue_id consumers.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| job_id | Yes | The audit job ID containing the issue | |
| issue_id | Yes | The specific issue ID to generate a patch for | |
| file_path | No | Path to the source file containing the issue (preferred over inline content) | |
| file_content | No | Inline source code if file_path not available |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |