edict_patch
Apply targeted patches to fix errors in Edict ASTs without resubmitting entire structures, then run validation checks to ensure correctness.
Instructions
Apply surgical patches to an Edict AST by nodeId, then run the full check pipeline. Use this to fix errors without resubmitting the entire AST. Each patch specifies a nodeId, an operation (replace/delete/insert), and the relevant field/value.
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": {
"ast": "<ast>",
"patches": "<patches>"
},
"name": "edict_patch"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ast | Yes | The base Edict JSON AST to patch | |
| patches | Yes | Array of patches to apply | |
| returnAst | No | Include the patched AST in the response (costs tokens, off by default) |