codebase_flow
Trace code execution flow forward from an entry point to reveal downstream calls, or return ranked auto-detected entry points when none is supplied.
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.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "codebase_flow"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file | No | Optional file hint to disambiguate the symbol. | |
| depth | No | Maximum DFS depth (default 5, max 10). | |
| limit | No | Maximum candidates to list when the entrypoint is ambiguous. Omit to list all. | |
| entrypoint | No | Symbol name to trace from. Omit to list auto-detected entry points. | |
| projectPath | No | Absolute path to the project directory. |