basic_blocks
Returns function CFG blocks by address in an IDA Pro database, with offset and max_blocks pagination for large functions.
Instructions
Return function CFG blocks with offset/max_blocks pagination.
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": {
"addrs": "<addrs>",
"instance_id": "<instance_id>"
},
"name": "basic_blocks"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| addrs | Yes | 函数地址。获取该函数的基本块及控制流。支持 hex、符号名。 | |
| offset | No | Skip first N blocks (default: 0) | |
| max_blocks | No | Max basic blocks per function (default: 1000, max: 10000) | |
| instance_id | Yes | 必须提供的 instance_id(或 client_id),用于将请求精确路由到特定的 IDA 实例。请先调用 instance_list 查看并选择合适的客户端 ID。 |