heal_code
Apply AI-suggested fixes to code issues by loading source files and generating repair prompts for automated correction.
Instructions
Load a file's source code and prepare a repair prompt for the AI agent. The agent (you) should then apply the fix based on the issue description and suggestion. Returns the file content along with the repair context.
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": {
"path": "<path>",
"issue": "<issue>"
},
"name": "heal_code"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | File path to heal | |
| issue | Yes | Issue description to fix | |
| suggestion | No | Suggested fix from OCR scan |