generate_code_fix
Generate a file-scoped diff fix for a GitHub issue, adhering to the target repository's coding conventions.
Instructions
Generate scoped, file-level diff fix for an issue adhering to target repo conventions
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": {
"repo": "<repo>",
"issueNumber": "<issueNumber>",
"targetFilePath": "<targetFilePath>",
"fixDescription": "<fixDescription>",
"proposedChanges": "<proposedChanges>"
},
"name": "generate_code_fix"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| repo | Yes | Target repository in "owner/repo" format | |
| issueNumber | Yes | Target issue number | |
| fixDescription | Yes | Detailed description of the proposed code fix | |
| targetFilePath | Yes | File path to be modified (e.g. "src/utils/parser.ts") | |
| proposedChanges | Yes | The code fix diff or full replacement content |