Searches the dependency graph for files that import a specific module. Useful for understanding how a module is consumed across the codebase, assessing the impact of changing a module's API, or finding usage patterns.
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
moduleName | string | yes | — | Module name or path to search for (e.g., lodash, @/utils/format, std::collections) |
matchMode | enum | no | contains | How to match: exact, prefix, contains, fuzzy |
limit | number | no | 50 | Maximum number of results |
Natural language:
Which files import from
@/utils/validation?
MCP call:
{
"tool": "stellarion_find_by_imports",
"arguments": {
"moduleName": "@/utils/validation",
"matchMode": "exact"
}
}
Natural language:
Find every file that imports anything from
axios
MCP call:
{
"tool": "stellarion_find_by_imports",
"arguments": {
"moduleName": "axios",
"matchMode": "prefix"
}
}
Natural language:
Find files importing anything related to "serde" in this Rust project
MCP call:
{
"tool": "stellarion_find_by_imports",
"arguments": {
"moduleName": "serde",
"matchMode": "contains"
}
}
Returns a list of importing files:
matchMode: "exact" when searching for a specific module path to avoid false positives.matchMode: "prefix" for packages with sub-modules (e.g., "react" matches react, react-dom, react/jsx-runtime).matchMode: "contains" when you're not sure of the full path.stellarion_analyze_impact to understand the cascading effect of changing a module.