ollama_fix_code
Fixes code bugs and errors using Ollama by passing broken code and error details to generate a corrected version.
Instructions
Fix bugs or errors in code using Ollama. Provide the broken code and error details.
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": {
"code": "<code>",
"error": "<error>"
},
"name": "ollama_fix_code"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | Yes | The code with issues | |
| error | Yes | Error message or description of the problem | |
| model | No | Ollama model to use (default: mistral-small) | gemma3:12b |