dependency_graph
Analyze module dependencies by tracing imports and imported-by relationships, with configurable direction and transitive depth for a given repository path.
Instructions
Return import/dependency relationships for a module. direction: "imports" | "imported_by" | "both". depth: transitive traversal depth (1 = direct only).
repo_path: optional absolute path to the target repository.
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": {
"module": "<module>"
},
"name": "dependency_graph"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| depth | No | ||
| module | Yes | ||
| direction | No | both | |
| repo_path | No |