generate_fix
Generates a contextual code fix for a verified security finding using the file path, candidate range, and snippet.
Instructions
Generate a contextual fix based on candidate line range, actual snippet, and verified finding.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| finding | No | VerifiedFinding object | |
| filePath | Yes | Path to the source file to fix | |
| candidate | No | Optional ScanCandidate object | |
| findingJson | No | Fallback: JSON string of VerifiedFinding | |
| projectRoot | No | Optional project root | |
| candidateJson | No | Fallback: JSON string of ScanCandidate |