--- outline: deep --- # VDT0001: Inspect Context Unavailable ## Message > Vite inspect context is not available for this DevTools context. ## Cause A `vite:inspect:*` RPC function was called in a DevTools context that did not register the Vite inspect collector. ## Example Calling `vite:inspect:get-modules-list` while only the base Vite metadata RPC functions are registered triggers this error. ## Fix Register the Vite UI plugin with inspect collection enabled before calling `vite:inspect:*` RPC functions. ## Source - [`packages/vite/src/node/inspect/context.ts`](https://github.com/vitejs/devtools/blob/main/packages/vite/src/node/inspect/context.ts) — `getViteInspectContext()` throws this when no inspect context was registered for the current DevTools context.