declare_type
Declare C type definitions in an IDA Pro instance to annotate binary analysis with structured type information.
Instructions
Declare types
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>",
"instance_id": "<instance_id>"
},
"name": "declare_type"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| decls | Yes | C type declarations | |
| instance_id | Yes | Target IDA instance ID (required) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |