Get store runtime activity
nanostores_store_activityDebug runtime behavior of Nanostores by monitoring events, changes, and errors to identify why stores update too often or what triggers modifications.
Instructions
Use this when debugging a specific store's runtime behavior — why it updates too often, what actions trigger changes, or whether it emits errors. Returns recent events, change frequency, action calls, and errors. Omit storeName to get activity across all stores. Example: {storeName: "$cart", kinds: ["change", "action-error"]} or {limit: 20, windowMs: 60000}.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| storeName | No | Store name to query (optional) | |
| limit | No | Max events to return | |
| windowMs | No | Time window in milliseconds (from now back) | |
| projectRoot | No | Project root path to link runtime data with static analysis | |
| kinds | No | Filter events by kind(s) | |
| actionName | No | Filter events by action name |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| storeName | No | ||
| stats | Yes | ||
| events | Yes | ||
| summary | Yes |