code_debug
Identify and fix issues in a code file by providing the path, issue description, fix type, and backup preference.
Instructions
Debug and fix issues in a code file
Args:
file_path: Path to the code file to debug
issue_description: Description of the issue to fix
fix_type: Type of fix (auto, manual, suggest)
backup: Whether to create a backup before making changes
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_path": "<file_path>",
"issue_description": "<issue_description>"
},
"name": "code_debug"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| backup | No | ||
| fix_type | No | auto | |
| file_path | Yes | ||
| issue_description | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |