ida_set_type
Set C type signatures for functions and variables in IDA Pro to improve decompilation and static analysis.
Instructions
Set the type signature for a function or variable (C declaration syntax).
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": {
"address": "<address>",
"type_str": "<type_str>"
},
"name": "ida_set_type"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| address | Yes | Address to type | |
| type_str | Yes | C type declaration, e.g. 'int __fastcall foo(HANDLE h, DWORD size)' |