rename_batch
Execute multiple symbol renames in Ghidra in a single request, sequentially processing each command with per-item error reporting.
Instructions
Run multiple rename commands against the selected program in one request.
Each command object accepts the same fields as `rename`: `target`,
`new_name`, optional `kind`, optional `function`, optional `split_at`, and
optional per-command `timeout`. Commands are executed sequentially in one
Ghidra snippet. The JSON result contains one entry per attempted command
with `ok: true` and the rename result, or `ok: false` and an error string.
Example command objects:
- `{"target": "function:main", "new_name": "app_main"}`
- `{"target": "arg:#0@main", "new_name": "argc"}`
- `{"target": "local:res@handler", "new_name": "did_index",
"split_at": "0x90003482"}`
Args:
commands: Rename command objects to execute sequentially.
program: Required Ghidra project path or name to target.
timeout: Default decompiler timeout in seconds for local/argument
renames. A command may override this with its own `timeout`.
stop_on_error: Stop after the first command failure when true.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| program | Yes | ||
| timeout | No | ||
| commands | Yes | ||
| stop_on_error | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |