binary_patch_apply
Apply a previewed, expected-byte-validated patch at a given file offset to a new output file, leaving the original unchanged.
Instructions
Apply a previewed disk replacement to a new output file; preserve the original.
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>",
"output_path": "<output_path>",
"preview_token": "<preview_token>"
},
"name": "binary_patch_apply"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | ||
| offset | Yes | ||
| output_path | Yes | ||
| expected_hex | Yes | ||
| preview_token | Yes | ||
| replacement_hex | Yes |