neurocode_validate_patch
Verify proposed code patches before writing by checking the target search block exists and the replacement parses with zero AST syntax errors.
Instructions
Pre-flight verification for proposed code patches. Checks that the target search block exists in the file and verifies that the replacement parses as valid syntax with zero AST syntax errors before writing to disk.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "neurocode_validate_patch"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| patch | No | Alternative: full SEARCH/REPLACE diff text | |
| file_path | No | Relative file path being modified | |
| repo_path | No | Path to repository root (default '.') | . |
| search_block | No | Original code lines to match and replace | |
| replace_block | No | New replacement code lines |