rename_stack_frame_variable
Modify a stack variable name within a disassembled function in IDA Pro. Specify the function address, current variable name, and desired new name for accurate renaming.
Instructions
Change the name of a stack variable for an IDA 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_stack_frame_variable"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| function_address | Yes | Address of the disassembled function to set the stack frame variables | |
| new_name | Yes | New name for the variable (empty for a default name) | |
| old_name | Yes | Current name of the variable |