Declare C types in the local library
declare_typeAdd C type definitions to IDA's local type library to improve decompilation and analysis. Provide declarations as strings for the current or specified database instance.
Instructions
Declare C type definitions in local type library.
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": {
"decls": "<decls>"
},
"name": "declare_type"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| decls | Yes | C type declarations | |
| instance_id | No | Optional database instance id. If omitted, use the current target. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |