rpc_export
Register a Python-side RPC export for Frida scripts to call, enabling communication between script and host.
Instructions
Register a stub Python-side RPC export the script side can call.
The function is a reflective shim that returns None; the
analyst wires the real Python callable by calling
re_frida.runner.rpc_export(session, name, fn) from a
follow-up script. The MCP layer intentionally avoids taking
a Python callable as a JSON argument (which the MCP
protocol can't transport).
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": {
"session": "<session>",
"name": "<name>"
},
"name": "rpc_export"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| session | Yes | ||
| name | Yes |