binary_patch_preview
Verify expected bytes at a binary offset and preview a replacement, returning a token to apply the patch as a new copy while preserving the original file.
Instructions
Verify disk bytes and preview replacement; retain its token for a copy-on-write apply.
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": {
"path": "<path>",
"offset": "<offset>",
"expected_hex": "<expected_hex>",
"replacement_hex": "<replacement_hex>"
},
"name": "binary_patch_preview"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | ||
| offset | Yes | ||
| expected_hex | Yes | ||
| replacement_hex | Yes |