find_xrefs_hex
Find cross-references to a target address in hex machine code, including calls, jumps, immediate values, and memory displacements.
Instructions
Find all cross-references to a target address in hex-encoded machine code.
Searches for call, jump, immediate value, and memory displacement references to the specified target address.
Args: hex_code: Hex-encoded machine code bytes. target_address: Target address to find references to (hex string, e.g. "0x401000"). arch: CPU architecture. Default: x86_64. base_address: Base address. Default: "0".
Returns: List of cross-references with source address, type, and instruction.
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": {
"hex_code": "<hex_code>",
"target_address": "<target_address>"
},
"name": "find_xrefs_hex"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| hex_code | Yes | ||
| target_address | Yes | ||
| arch | No | x86_64 | |
| base_address | No | 0 |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |