emu_run
Emulate one binary function in isolation with supplied arguments and memory inputs to verify a reverse-engineering hypothesis and inspect return values, registers, instruction count, and stop reason.
Instructions
Emulate a single function in isolation and return its result.
Use after you have guessed what a function does, to verify the guess against
known inputs. args are passed per calling convention (floats go to the
floating point argument registers); mem_inputs maps addresses (hex/dec
strings) to hex byte data pre-written to memory.
Returns return value, main registers, instruction count and stop reason.
No syscalls/filesystem/network are emulated; unknown calls stop execution.
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": {
"func_addr": "<func_addr>"
},
"name": "emu_run"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| args | No | ||
| func_addr | Yes | ||
| max_insns | No | ||
| mem_inputs | No | ||
| timeout_ms | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |