Create Function
create_functionDefine a function at a specified address in an IDA Pro database, with optional end address and timeout, to enable analysis of disassembled code.
Instructions
Create a function at an address.
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": {
"address": "<address>"
},
"name": "create_function"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| end | No | Optional function end address (exclusive) | |
| address | Yes | Function start address (hex or decimal) | |
| 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. |