find_xrefs_in_file
Scans a binary file section for call, jump, and operand references to a given address, enabling cross-reference analysis for reverse engineering.
Instructions
Find all cross-references to a target address in a binary file's section.
Scans the specified section for all instructions that reference the target address via call, jump, immediate operand, or memory displacement.
Args: file_path: Absolute path to the binary file. target_address: Target address to find references to (hex string, e.g. "0x401000"). section_name: Section to scan. Default: ".text". arch: CPU architecture. Auto-detected if omitted.
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": {
"file_path": "<file_path>",
"target_address": "<target_address>"
},
"name": "find_xrefs_in_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file_path | Yes | ||
| target_address | Yes | ||
| section_name | No | .text | |
| arch | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |