renef_rpc
Evaluate a Lua expression in the target process and return its result as structured JSON, including exact Lua error messages on failure.
Instructions
Evaluate a Lua expression in the target process and return its structured JSON value.
Uses Renef v0.4.0's rpc command: Lua tables become JSON arrays/objects, booleans stay
true/false, and errors return exact Lua error messages.
Examples:
- OS.getpid() -> 12345
- {pid = OS.getpid(), tid = Thread.id()} -> {"pid": 12345, "tid": 12360}
- Module.find("libc.so") -> base address integer
Args: expression: Lua expression to evaluate timeout: Silence timeout in seconds (default: 30.0)
Returns:
JSON object with ok and value
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": {
"expression": "<expression>"
},
"name": "renef_rpc"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| timeout | No | ||
| expression | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |