explain_middleware
Explains Nuxt middleware type, global run order, applied routes, and navigateTo/abortNavigation calls via static analysis; omit the name to list all middleware and flag missing references.
Instructions
Explain a Nuxt middleware (global / named / inline): its type, global run order, the routes it applies to, and whether it calls navigateTo or abortNavigation. Omit name to list all middleware and flag pages referencing missing middleware. 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": "explain_middleware"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | Middleware name or a file under middleware/, e.g. auth or middleware/auth.ts. Omit to list all middleware. | |
| root | No | Optional project root override (defaults to the server project path) |