find_call_path
Find the shortest call paths between two functions in a C/C++ codebase using breadth-first search. Returns up to 5 paths with depth and function chain.
Instructions
Find call paths between two functions via BFS in the call graph.
Returns up to 5 shortest paths, each with depth (edge count) and
chain (e.g. "main → app_run → modem_init").
Requires refs indexed (fw-context index --refs).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| from_name | Yes | Starting symbol for path search. | |
| to_name | Yes | Target symbol to find path to. | |
| project_root | No | Project root. Auto-detected if omitted. | |
| max_depth | No | Maximum BFS depth for path search (default 10). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |