propose_minimal_fix
Generate a minimal, high-confidence patch for a diagnosed test failure, returning a unified diff with explanation, confidence, and risk level.
Instructions
Generate the smallest possible high-confidence patch for a diagnosed root cause. Always prefer minimal edits. Returns a unified diff, explanation, confidence, and risk level. Call diagnose_test_failure first when possible.
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": {
"test_output": "<test_output>",
"source_files": "<source_files>"
},
"name": "propose_minimal_fix"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| git_diff | No | ||
| language | No | ||
| diagnosis | No | Output from a previous diagnose_test_failure call. Strongly recommended. | |
| framework | No | ||
| constraints | No | Any constraints the agent must respect (e.g. 'do not change public API', 'keep existing test structure') | |
| test_output | Yes | ||
| source_files | Yes | ||
| root_cause_id | No | Which ranked root cause to fix (1-based). Defaults to 1. |