get_dependencies
Retrieve the import dependencies of a specified file, tracing its dependency chain outward. Requires a prior reindex to build the dependency graph.
Instructions
Get the files that a given file imports (its dependencies). Shows the dependency chain from this file outward. Requires a prior reindex to build the dependency graph. No API call needed.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file | Yes | Relative file path from project root (e.g., "src/tools/searchCode.ts") | |
| depth | No | How many levels deep to traverse (default: 1 = direct imports only, 2 = imports of imports) |