program.export_binary
Export the analyzed program to disk as the original file format or as raw bytes, letting you save modified binaries or extract patched code from a Ghidra session.
Instructions
Export the program to disk as either the original-file format or raw bytes.
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_id": "<session_id>",
"path": "<path>"
},
"name": "program.export_binary"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | ||
| format | No | ||
| session_id | Yes |