Plan a semantic AST edit
carve_plan_ast_editPlan atomic semantic AST edits and return a human-readable, reversible, stale-guarded source patch without writing the document.
Instructions
Plan one or more atomic semantic AST edits and return a human-readable, reversible, stale-guarded source patch without writing the document.
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": {
"source": "<source>",
"selector": "<selector>",
"edit": "<edit>"
},
"name": "carve_plan_ast_edit"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| edit | Yes | ||
| then | No | Additional atomic edits resolved against the original source (maximum 100 total steps). | |
| source | Yes | Document source (maximum 1000000 UTF-8 bytes) | |
| selector | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| edit | Yes | ||
| match | Yes | ||
| steps | Yes | ||
| sha256 | No | ||
| notices | Yes | ||
| selector | Yes | ||
| editCount | Yes | ||
| sourcePatch | Yes | ||
| reversiblePatch | Yes |