get_dependents
Find all files that import a specified file. Use this to understand dependency impacts and analyze module usages.
Instructions
Get all files that depend on (import) a specific file.
Purpose: Find what other files import this file (reverse dependency lookup).
Returns: Array of file paths that import the specified file.
Use this when:
Understanding impact of changes
Finding usages of a module
Analyzing file importance
IMPORTANT: Only considers static imports (string literals). Dynamic imports are filtered. 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: 'models/User.php' or just 'User.php') |