Get routes
get_routesRetrieve SvelteKit route nodes (+page/+layout/+error) with display labels and direct child components to analyze route dependencies.
Instructions
Return every route node (+page/+layout/+error) with its display label and the direct child components it pulls in.
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": {
"root": "<root>"
},
"name": "get_routes"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| root | Yes | Absolute path to the SvelteKit/Svelte project root to analyze. |