editor_patch_preview
Preview expected-byte-validated patch results before writing, verifying live bytes against replacement values without modifying the buffer or issuing a mutation token.
Instructions
Verify and preview live bytes; can_apply is false and no mutation token is issued.
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": {
"buffer_id": "<buffer_id>",
"offset": "<offset>",
"expected_hex": "<expected_hex>",
"replacement_hex": "<replacement_hex>"
},
"name": "editor_patch_preview"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| offset | Yes | ||
| buffer_id | Yes | ||
| expected_hex | Yes | ||
| replacement_hex | Yes |