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.
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) |