get_function_cfg
Extract control flow graphs from functions in IDA Pro to analyze basic blocks, instructions, and their connections for reverse engineering.
Instructions
Get the control flow graph of a function, including all basic blocks and their connections. Returns basic blocks with their instructions and successor/predecessor relationships.
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": "get_function_cfg"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| address | Yes | Address of the function to analyze |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| blocks | Yes | ||
| entry_block | Yes | ||
| exit_blocks | Yes | ||
| function_name | Yes | ||
| function_address | Yes |