ida_set_type
Applies a C declaration at a target address to define function prototypes or data types for accurate IDA Pro disassembly and decompilation.
Instructions
Apply a C declaration at an address — a function prototype or a data type, e.g. 'int __fastcall f(void *self, int idx)'.
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": {
"target": "<target>",
"declaration": "<declaration>"
},
"name": "ida_set_type"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| target | Yes | Address or name: '0x401000', 'sub_401000', a defined name, 'libUE4.so+0x1234', or a unique part of a function name. | |
| declaration | Yes |