get_call_hierarchy
Trace function calls by specifying incoming (who calls the function) or outgoing (what the function calls) directions using symbol name or file location.
Instructions
Get call hierarchy for a function/method. Direction: "incoming" shows who calls this, "outgoing" shows what this calls. Target it either by "symbol" name (preferred: no need to know coordinates) or by explicit file/line/column.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file | No | Path to the file (relative to project root) | |
| line | No | Line number (1-based) | |
| column | No | Column number (1-based) | |
| symbol | No | Name of the symbol to target, instead of line/column. Qualify as "Container.member" (e.g. "UserService.getUser") to disambiguate. Combine with "file" to restrict the search to one file. An ambiguous name returns an error listing the candidates. | |
| direction | Yes | Direction: incoming (who calls this) or outgoing (what this calls) |