verify_code_patch
Assess a code diff or patch for security regressions, broken syntax, and critical system impact. Choose strict, balanced, or permissive risk tolerance to determine acceptance.
Instructions
Evaluates whether a code diff or patch introduces security regressions, broken syntax, or critical system impact under a configurable risk tolerance (strict, balanced, permissive).
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": {
"patch_content": "<patch_content>",
"target_file": "<target_file>"
},
"name": "verify_code_patch"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| timeout | No | HTTP request timeout in seconds (default: 30.0). | |
| target_file | Yes | Path of the target file being modified. | |
| bypass_cache | No | Bypass deterministic cache lookup. | |
| patch_content | Yes | Diff or patch content to verify. | |
| risk_tolerance | No | Risk tolerance threshold for acceptance (strict, balanced, permissive; default: balanced). | balanced |