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.
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": {
"job_id": "<job_id>",
"issue_id": "<issue_id>"
},
"name": "generate_patch"
}
}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 |