Skip to main content
Reference · Information

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

Source: Sources/Indexer/DependencyExtractor.swift