evaluate_then_fix
Evaluate code and automatically generate fix patches for all auto-fixable findings, returning a verdict and ready-to-apply patches for a streamlined review and fix workflow.
Instructions
Evaluate code and automatically generate fix patches for all findings that have auto-fix support. Returns the evaluation verdict alongside ready-to-apply patches. Use this for a single-step 'review + fix' workflow.
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>",
"language": "<language>"
},
"name": "evaluate_then_fix"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | Yes | The source code to evaluate and fix. | |
| config | No | Optional inline configuration (same format as .judgesrc) | |
| context | No | Optional context about the code. | |
| language | Yes | The programming language (e.g., 'typescript', 'python'). | |
| minConfidence | No | Minimum finding confidence to include (0-1, default: 0) | |
| includeAstFindings | No | Include AST/code-structure findings (default: true) |