Rename Global Variable
rename_global_variableRename a global variable in an IDA Pro database by providing its exact existing symbol name and a valid C identifier as the new name; optionally target a specific open instance.
Instructions
Rename global variable.
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": {
"old_name": "<old_name>",
"new_name": "<new_name>"
},
"name": "rename_global_variable"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| timeout | No | Timeout in seconds | |
| new_name | Yes | New name (valid C identifier) | |
| old_name | Yes | Existing global symbol name (exact match) | |
| instance_id | No | REQUIRED whenever more than one database is open (from open_database's result or list_databases()); optional only while exactly one instance is live. |