editor_patch_apply
Apply an expected-byte-validated binary patch to an unsaved editor buffer after preview; this release returns CAPABILITY_UNSUPPORTED for atomic writes.
Instructions
Report CAPABILITY_UNSUPPORTED: atomic unsaved-buffer writes are disabled this release.
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>",
"preview_token": "<preview_token>"
},
"name": "editor_patch_apply"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| offset | Yes | ||
| buffer_id | Yes | ||
| expected_hex | Yes | ||
| preview_token | Yes | ||
| replacement_hex | Yes |