esil_set_register
Set a register value in the ESIL virtual machine to control emulation state. Use a persistent session ID for continuity, or provide a binary path to create a fresh session.
Instructions
Set a register value in the ESIL virtual machine. If session_id is provided, uses a persistent session; otherwise creates a fresh session.
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": {
"register_name": "<register_name>",
"value": "<value>"
},
"name": "esil_set_register"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| value | Yes | Value to set the register to (hex string, e.g. "0x41414141") | |
| address | No | Address (hex) to set as program counter before modifying registers | |
| session_id | No | Persistent ESIL session ID from esil_init. If provided, binary_path and address are ignored. | |
| binary_path | No | Absolute path to the binary file. Required when session_id is not provided. | |
| register_name | Yes | Register name to set (e.g. "eax", "rip", "rsp") |