Declare Enum
declare_enumDeclare or update enums in the local type library to keep reverse-engineering type definitions accurate and reusable across IDA Pro sessions.
Instructions
Declare or update an enum 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_enum"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| decl | Yes | Enum declaration text (e.g. 'enum 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. |