Get store subgraph
nanostores_store_subgraphAnalyze bidirectional dependencies of Nanostores stores to visualize upstream sources and downstream dependents within configurable radius, providing structural context for dependency chains.
Instructions
If your question is 'what recomputes downstream when X changes?', use nanostores_store_impact instead — it gives the ordered causal chain in one call. Use this tool only when you need both directions: upstream sources AND downstream dependents together. Returns the BFS neighborhood within a configurable radius (default 2). Start with radius=1; increase only when you need wider structural context. On highly connected hub stores (score>5 in project_outline) radius=2+ may return most of the project. Example: {name: "$cart", radius: 1} or {storeId: "store:src/stores.ts#$cart", radius: 2}.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| storeId | No | Exact store id. If provided, takes priority. | |
| name | No | Store name. Used if storeId is not provided. | |
| radius | No | BFS radius around the store (default 2) | |
| projectRoot | No | Project root path (uses default if omitted) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| centerStoreId | Yes | ||
| radius | Yes | ||
| nodes | Yes | ||
| edges | Yes | ||
| summary | No | ||
| warning | No |