Declare Typedef
declare_typedefCreate or update a typedef in the local type library to define custom C types for binary reverse engineering in IDA Pro.
Instructions
Declare or update a typedef in the 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": {
"decl": "<decl>"
},
"name": "declare_typedef"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| decl | Yes | Typedef declaration text (e.g. 'typedef unsigned int NAME;') | |
| timeout | No | Timeout in seconds | |
| instance_id | No | REQUIRED whenever more than one database is open (from open_database's result or list_databases()); optional only while exactly one instance is live. |