Set Function Prototype
set_function_prototypeSet a function's full C prototype at a specified address to apply accurate parameter and return types during IDA Pro analysis.
Instructions
Set function prototype (type signature).
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": {
"function_address": "<function_address>",
"prototype": "<prototype>"
},
"name": "set_function_prototype"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| timeout | No | Timeout in seconds | |
| prototype | Yes | Full C function declaration | |
| 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. | |
| function_address | Yes | Function start or internal address (hex or decimal) |