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.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"filePath": "<filePath>"
},
"name": "generate_fix"
}
}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 |