edb_va_to_file_offset
Translate a virtual address to a file offset in the binary on disk, enabling direct patching of the executable file.
Instructions
Convert a virtual address in the loaded process to the corresponding file offset in the binary on disk. Essential for applying patches back to the binary file.
Args: params (VirtualAddressInput): Virtual address - address (str): Virtual address in hex (e.g., '0x400000')
Returns: str: File offset in hex
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": {
"params": "<params>"
},
"name": "edb_va_to_file_offset"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| params | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |