check_ssr_safety
Statically scans Nuxt code to flag SSR hazards such as browser-only globals at module scope, non-deterministic rendered values, and shared composable state without a dev server.
Instructions
Statically flag SSR hazards: browser-only globals at setup top level / module scope, non-deterministic values (Date.now / Math.random / crypto.randomUUID) rendered in templates or computed, and shared ref/reactive state in composables. Static analysis only — no DevServer or nuxi prepare.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "check_ssr_safety"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | No | Optional file or directory to limit the scan (relative to the project root). | |
| root | No | Optional project root override (defaults to the server project path) |