edb_generate_cfg
Generate a Control Flow Graph in Graphviz DOT format for a specified address and region size. Visualizes edges between basic blocks.
Instructions
Generate a Control Flow Graph in Graphviz DOT format.
Equivalent to EDB's GraphWidget (which uses Graphviz). The output
DOT can be rendered with dot -Tpng -o output.png or viewed in
any Graphviz viewer. Shows edges between basic blocks.
Args: params (AnalyzeBasicBlocksInput): Region - address (str): Start address - size (int): Region size (default: 256)
Returns: str: DOT format CFG
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": {
"params": "<params>"
},
"name": "edb_generate_cfg"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| params | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |