codebase_flow
Trace execution flow forward from an entry point to understand code call relationships. Auto-detect entry points or specify a symbol to generate the call tree.
Instructions
Trace the EXECUTION FLOW forward from an entry point — what does this code call into? With NO args, returns a ranked list of auto-detected entry points (orphans with outgoing calls, conventional names like main(), framework routes, tests). With an entrypoint argument, returns the call tree.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| projectPath | No | Absolute path to the project directory. | |
| entrypoint | No | Symbol name to trace from. Omit to list auto-detected entry points. | |
| file | No | Optional file hint to disambiguate the symbol. | |
| depth | No | Maximum DFS depth (default 5, max 10). |