rename_local_variable
Change the name of a local variable within a specific function in IDA Pro to improve code readability and analysis 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 | |
| old_name | Yes | Current name of the variable | |
| new_name | Yes | New name for the variable (empty for a default name) |