xrefs
Resolve an address, label, or function to list its incoming and outgoing cross-references, including reference types and context. Optionally scan memory for raw pointer-byte matches to uncover non-recorded references.
Instructions
Get incoming and outgoing cross-references for an address, label, or function.
The target is resolved through Ghidra's `toAddr()` helper, so normal
address strings, exact label names, and exact function names are accepted.
The response is JSON containing the resolved address plus both incoming and
outgoing references, including reference type and nearby label/function
context for the opposite end of each edge.
When `include_pointer_bytes` is true, initialized memory is also scanned
for raw pointer-sized values equal to the resolved address. These are byte
matches, not Ghidra reference records.
Args:
target: Address, exact label name, or exact function name to inspect.
program: Required Ghidra project path or name to target.
include_pointer_bytes: Also scan memory for raw pointer-byte matches.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| target | Yes | ||
| program | Yes | ||
| include_pointer_bytes | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |