add_route
Scaffold a new Nuxt page route under pages/ using static, dynamic, optional, or catch-all segments, with dry-run planning and optional layout/middleware metadata.
Instructions
Scaffold a new page route under pages/ following Nuxt conventions. Supports static, dynamic (:id -> [id]), optional ([[id]]), and catch-all ([...slug]) segments.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"path": "<path>"
},
"name": "add_route"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Route path, e.g. /users/:id or /about | |
| dryRun | No | When true (default), return the planned file without writing | |
| layout | No | Optional layout name to set in definePageMeta | |
| middleware | No | Optional middleware names to set in definePageMeta |