analyze_function
Inspect a single function in an IDA Pro database to retrieve pseudocode, strings, constants, callers, callees, cross-references, and basic blocks, with optional disassembly.
Instructions
Compact single-function analysis: pseudocode, strings, constants, callers, callees, xrefs, blocks.
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": {
"addr": "<addr>",
"instance_id": "<instance_id>"
},
"name": "analyze_function"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| addr | Yes | Function address or name | |
| include_asm | No | Include full disassembly (default: false, saves tokens) | |
| instance_id | Yes | 必须提供的 instance_id(或 client_id),用于将请求精确路由到特定的 IDA 实例。请先调用 instance_list 查看并选择合适的客户端 ID。 |