declare_c_type
Define or modify local types in IDA Pro using a C declaration string. Streamlines reverse engineering workflows by automating type creation or updates.
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; }; |