hex_replace
Replace bytes at a specific file offset or swap a hex pattern throughout a binary. Patch game files by overwriting bytes with same-length replacements.
Instructions
Replace bytes at a specific offset or replace a pattern throughout the file.
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": {
"file_path": "<file_path>",
"replace_hex": "<replace_hex>"
},
"name": "hex_replace"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| offset | No | Specific offset to replace at (if provided, ignores search_hex) | |
| file_path | Yes | Path to the file | |
| search_hex | No | Hex pattern to find | |
| replace_hex | Yes | Hex pattern to replace with (must be same length) |