fix_code
Diagnose and fix bugs in code using error messages or symptoms. Provide code or file path for automated correction.
Instructions
Diagnose and fix a bug in code, given an optional error message or symptom.
Provide exactly one of code or file_path. Include error_message
(a stack trace, test failure, or description of wrong behavior) whenever
you have one -- it substantially improves fix quality.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "fix_code"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | No | ||
| think | No | ||
| file_path | No | ||
| error_message | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |