ghidra.eval
Execute Python code in the live Ghidra runtime to automate reverse-engineering tasks; set write=true to access a read-only session as writable.
Instructions
Evaluate Python code inside the live Ghidra runtime context. Raw access to a read-only session requires write=true and transitions it to writable.
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": {
"code": "<code>"
},
"name": "ghidra.eval"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | Yes | ||
| write | No | ||
| session_id | No |