variable.retype
Change a local variable or parameter data type in Ghidra to correct type mismatches and improve decompilation clarity.
Instructions
Change the data type of a local variable or parameter.
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": {
"session_id": "<session_id>",
"function_start": "<function_start>",
"name": "<name>",
"data_type": "<data_type>"
},
"name": "variable.retype"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | ||
| ordinal | No | ||
| storage | No | ||
| data_type | Yes | ||
| session_id | Yes | ||
| function_start | Yes |