validate_edit
Validate code edits by detecting syntax errors and breaking changes before applying them to prevent flawed modifications.
Instructions
Validates a proposed code edit BEFORE applying it. Checks for:
Syntax Errors (missing braces, invalid syntax).
Breaking Changes (removing functions/classes that are used by other files).
Use this tool to check your code before writing it to a file.
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": {
"file_path": "<file_path>",
"new_content": "<new_content>"
},
"name": "validate_edit"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file_path | Yes | ||
| new_content | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |