generate_nextjs_routing
Generate Next.js App Router file structure with middleware, dynamic routes, route groups, and parallel routes
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": {
"appName": "<appName>",
"routes": "<routes>"
},
"name": "generate_nextjs_routing"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| routes | Yes | Comma-separated route segments (e.g. dashboard,users/[id],api/auth) | |
| appName | Yes | Application name | |
| withI18n | No | Include i18n routing setup | |
| withApiRoutes | No | Generate API route handlers | |
| withMiddleware | No | Include middleware.ts for auth |