offset_to_rva
Convert a file offset to a Relative Virtual Address in a PE file, enabling accurate binary patching and memory mapping during game modding.
Instructions
Convert a file offset to a Relative Virtual Address (RVA) in a PE file.
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>",
"offset": "<offset>"
},
"name": "offset_to_rva"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| offset | Yes | File offset to convert | |
| file_path | Yes | Path to PE file |