Function CFG blocks (paginated)
basic_blocksRetrieve control flow graph blocks of a function from a binary, with offset and max_blocks pagination for analyzing function structure.
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>"
},
"name": "basic_blocks"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| addrs | Yes | Function addresses or names to get basic blocks for (e.g. '0x123e', 'main') | |
| offset | No | Skip first N blocks (default: 0) | |
| max_blocks | No | Max basic blocks per function (default: 1000, max: 10000) | |
| instance_id | No | Optional database instance id. If omitted, use the current target. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |