Address To File Offset
address_to_file_offsetMap a provider-normalized address to its original file offset, validate bytes against the executable digest, and translate FAT image-relative offsets; unmapped or changed sources return typed errors.
Instructions
Map one provider-normalized virtual address to its original nonnegative file offset. Hopper verifies the original bytes against the selected executable digest and translates FAT image-relative offsets using the loaded header. Results preserve the provider coordinate, image base, and source path. Unmapped addresses fail explicitly; changed or unavailable sources return typed errors retaining native mapping facts as partial evidence.
Example tool call
This call uses example arguments supplied in the tool’s input schema.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"address": "0x1000"
},
"name": "address_to_file_offset"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| address | Yes | A provider-normalized address; default memory uses 0x-prefixed hexadecimal | |
| document | No | The active target's provider document name; use open_binary to switch targets |