generate_react_router
Generate React Router v6 configuration with nested routes, lazy loading, guards, and data loaders
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_react_router"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| routes | Yes | Comma-separated route paths (e.g. /,/dashboard,/users/:id) | |
| appName | Yes | Application name | |
| withLoaders | No | Include createBrowserRouter data loaders | |
| withAuthGuard | No | Include authentication route guard | |
| withLazyLoading | No | Lazy load route components | |
| withErrorBoundary | No | Include error boundary per route |