declare_c_type
Create or update local types in IDA Pro by parsing C declarations to define structures, typedefs, and other custom types for binary analysis.
Instructions
Create or update a local type from a C declaration
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": {
"c_declaration": "<c_declaration>"
},
"name": "declare_c_type"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| c_declaration | Yes | C declaration of the type. Examples include: typedef int foo_t; struct bar { int a; bool b; }; |