rva_to_offset
Convert a Relative Virtual Address (RVA) to a file offset in a PE file to locate and patch binary data during game modding.
Instructions
Convert a Relative Virtual Address (RVA) to a file offset 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>",
"rva": "<rva>"
},
"name": "rva_to_offset"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| rva | Yes | RVA to convert | |
| file_path | Yes | Path to PE file |