fix_code
Generate a fix for a specific code issue by supplying the file path and problem description. Optionally include the problematic code snippet and severity level.
Instructions
Generate a fix for a specific code issue. Provide the file path, problem description, and optionally the problematic code snippet.
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": {
"file": "<file>",
"issue": "<issue>"
},
"name": "fix_code"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file | Yes | File path where the issue exists. | |
| issue | Yes | Description of the issue to fix. | |
| problemCode | No | The problematic code snippet. | |
| line | No | Line number where the issue is. | |
| severity | No | Severity of the issue. | medium |