rename_local_variable
Rename local variables within functions in IDA Pro. Specify the function address, current variable name, and new name to update variable identifiers during reverse engineering.
Instructions
Rename a local variable in a function
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": {
"function_address": "<function_address>",
"old_name": "<old_name>",
"new_name": "<new_name>"
},
"name": "rename_local_variable"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| function_address | Yes | Address of the function containing the variable | |
| new_name | Yes | New name for the variable (empty for a default name) | |
| old_name | Yes | Current name of the variable |