get_control_flow
Build Control Flow Graphs (CFG) for functions to visualize logical paths through code, including branches, loops, and exception handling. Outputs diagrams in Mermaid, ASCII, or JSON formats.
Instructions
Build a Control Flow Graph (CFG) for a function/method: if/else branches, loops, try/catch, returns, throws. Shows logical paths through the code. Outputs Mermaid diagram, ASCII, or JSON.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| symbol_id | No | Symbol ID of the function/method | |
| fqn | No | Fully qualified name of the function/method | |
| format | No | Output format (default: mermaid) | |
| simplify | No | Collapse sequential statements (default: true) |