generate_sveltekit_routing
Generate SvelteKit file-based routing with +page, +layout, +server, hooks, and load functions
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_sveltekit_routing"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| routes | Yes | Comma-separated route paths (e.g. /,/dashboard,/products/[id]) | |
| appName | Yes | Application name | |
| withLayouts | No | Include +layout.svelte files | |
| withAuthHook | No | Include hooks.server.ts auth guard | |
| withApiEndpoints | No | Generate +server.ts API endpoints | |
| withLoadFunctions | No | Include +page.server.ts load functions |