hex_write
Patch binary files by writing raw bytes to a specified byte offset, enabling precise hex edits for game modding and data correction.
Instructions
Write raw bytes to a file at a specific offset.
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>",
"offset": "<offset>",
"hex_data": "<hex_data>"
},
"name": "hex_write"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| offset | Yes | Byte offset to write at | |
| hex_data | Yes | Hex string to write (e.g. "90 90 90" or "909090") | |
| file_path | Yes | Path to the file |