get_routes
Detect API routes and pages in a Next.js App Router project to map their paths, files, HTTP methods, and types.
Instructions
Detect API routes and pages in a Next.js App Router project: path, file, HTTP methods, type.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "get_routes"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| project | No | Project name/path (default: active). | |
| max_results | No | Max routes to return (0 = all, default 0). |