Module dependents
get_module_dependentsRetrieve a file or module’s lexical import graph—including imports, imported_by, and dynamic-import flags—to map direct dependencies and dependents before impact analysis.
Instructions
File/module lexical import graph (imports & imported_by) for one path or module; flags dynamic imports. Fails if unindexed. For symbol call edges, use get_impact_slice instead.
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": {
"repo_id": "<repo_id>"
},
"name": "get_module_dependents"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | No | Indexed repository-relative file path; pass exactly one of path or module (providing both or neither errors). | |
| module | No | Module/package name (1-200 safe chars); pass exactly one of path or module (providing both or neither errors). | |
| profile | No | Named budget profile preset ('locate', 'orient', 'impact', 'read'); defaults to 'impact'. | |
| repo_id | Yes | Registered repository ID from list_repositories (never a filesystem path). | |
| max_tokens | No | Token cap for the response (32 to max_result_tokens); defaults to 'impact' profile budget and reports omissions in omitted_count. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | No | Lexical import and importer relationships for the requested path or module. | |
| error | No | Present when the tool call fails (either a structured {code, message, details} object or a diagnostic string). | |
| budget | No | Token budget accounting for this response. | |
| repo_id | No | Registered repository identifier. | |
| evidence | No | Source-verified file line spans and SHA-256 hashes backing the response. | |
| warnings | No | Freshness, ambiguity, redaction, or security warnings. | |
| freshness | No | Index freshness state ('fresh', 'pending', 'stale', or 'unknown'). | |
| truncated | No | True if items were omitted due to budget or node limits. | |
| ledger_rev | No | Current evidence ledger revision for repo_id. | |
| completeness | No | Coverage/resolution completeness indicator. | |
| index_run_id | No | Identifier of the active index snapshot run. | |
| schema_version | No | Envelope schema version ('1.0'). | |
| untrusted_repository_content | No | True when payload embeds raw repository text. |