Declare Stack
declare_stackCreate stack variables at specified offsets within IDA Pro functions using function address, offset, name, and optional type/size for reverse engineering.
Instructions
Create stack variable(s) at specified offset(s).
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": {
"items": "<items>"
},
"name": "declare_stack"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| items | Yes | List of {function_address, offset, name, type?, size?} | |
| 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. |