ghidra.script
Executes a script against an open program session for custom analysis or automation, optionally with arguments and writable access.
Instructions
Run a Ghidra script against an open program session. 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": {
"path": "<path>"
},
"name": "ghidra.script"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | ||
| write | No | ||
| session_id | No | ||
| script_args | No |