rename_local_variable
Rename a local variable or argument within a decompiled function using Hex-Rays to clarify code intent and improve readability.
Instructions
Rename a local variable or argument in a decompiled function. Requires Hex-Rays.
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_identifier": "<function_identifier>",
"old_name": "<old_name>",
"new_name": "<new_name>"
},
"name": "rename_local_variable"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| new_name | Yes | ||
| old_name | Yes | ||
| function_identifier | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |