Create reversible AST patch
carve_create_reversible_ast_patchCompare two PART 12 ASTs and generate a reversible patch with forward and inverse operations, including semantic stale-edit fingerprints for safe migration.
Instructions
Compare two PART 12 ASTs and return forward and inverse operations with semantic stale-edit fingerprints.
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_reversible_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 | ||
| forward | Yes | ||
| inverse | Yes | ||
| version | Yes | ||
| afterFingerprint | Yes | ||
| beforeFingerprint | Yes |