get_dependencies
Retrieve all static imports of a file, showing dependency path, line number, type (internal/external/stdlib), and imported symbols.
Instructions
Get all dependencies (imports) of a specific file.
Purpose: Analyze what modules/files a given file imports.
Returns: Array of dependency objects with import path, line number, type (internal/external/stdlib), and optional symbols.
Use this when:
Understanding file dependencies
Analyzing import structure
Finding what a file depends on
IMPORTANT: Only extracts static imports (string literals). Dynamic imports (variables, template literals, expressions) are automatically filtered by tree-sitter query design. See CLAUDE.md section "Dependency/Import Extraction" for details.
Note: Path matching is fuzzy - supports exact paths, fragments, or just filenames.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | File path (supports fuzzy matching: 'Controllers/FooController.php' or just 'FooController.php') |