Get Dependencies
get_dependenciesTrace a function's callers and callees up to N levels deep to map its real dependency graph. Use it instead of grep-for-function-name when you need actual call chains, not text matches.
Instructions
Trace who calls a function and what it calls, up to N levels deep. Use this instead of grep-for-function-name when you need the actual call chain — returns the dependency graph, not text matches. Covers callers (upstream), callees (downstream), or both.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| depth | No | How many levels deep to traverse (default: 2) | |
| project | No | Project name (required in multi-project mode). Use list_projects to see available projects. | |
| direction | No | Which direction to traverse (default: both) | |
| entity_id | Yes | Entity ID or name |