who_depends_on_this
Find all files that import a given module and detect dead import chains via a has_importers flag. Query the import graph structurally to assess dependency impact.
Instructions
Returns all files that import a given module. Each result includes has_importers flag: false means the import chain is transitively dead (nothing depends on that importer). Structural query based on the import graph, not text matching.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"file_path": "<file_path>",
"repo": "<repo>"
},
"name": "who_depends_on_this"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| repo | Yes | Repository name (as shown in list_repos) | |
| file_path | Yes | Relative file path within the repository (e.g., 'src/main.py') | |
| max_results | No | Maximum results to return |