ida_patch_bytes
Patch bytes at a target address or symbol in the IDA database to modify binary behavior; the original file remains unchanged unless applied to input.
Instructions
Patch bytes at an address (hex string). Affects the database, not the original file unless applied to input.
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": {
"target": "<target>",
"hex_bytes": "<hex_bytes>"
},
"name": "ida_patch_bytes"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| target | Yes | Address or name: '0x401000', 'sub_401000', a defined name, 'libUE4.so+0x1234', or a unique part of a function name. | |
| hex_bytes | Yes |