senkani_deps
Live
Replaces
Read ×N
Query the bidirectional dependency graph: what imports X, what does X import.
Signature
senkani_mcp.call(tool="senkani_deps", args={...})
Behavior
Direct lookup in the edge set built by `DependencyExtractor`. No traversal — returns the immediate neighbors. For multi-hop exploration, use `senkani_explore`.
Inputs
Name
Type
Default
Description
file
string
—
File to query.
direction
string
both
One of `imports`, `imported_by`, or `both`.
Output
List of file paths with import-kind annotation.
Example
{"tool":"senkani_deps","args":{"file":"src/auth.ts","direction":"imported_by"}}
Details
Edge kinds: `static-import`, `dynamic-import`, `re-export`, `require`. Swift imports include the module name.
See also
senkani_explore— Multi-hop subgraph instead of direct neighbors.senkani_outline— What's inside a file, not who uses it.
Source:
Sources/Indexer/DependencyExtractor.swift