Create structured AST patch
carve_create_ast_patchCompare two Carve ASTs to generate a position-independent patch of add, replace, and remove operations.
Instructions
Compare two PART 12 Carve ASTs and return position-independent add, replace, and remove operations.
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": {
"before": "<before>",
"after": "<after>"
},
"name": "carve_create_ast_patch"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| after | Yes | PART 12 AST after the edit (maximum 1000000 JSON bytes) | |
| before | Yes | PART 12 AST before the edit (maximum 1000000 JSON bytes) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| changes | Yes | ||
| operations | Yes | ||
| changeCount | Yes | ||
| operationCount | Yes |