Get Largest Routes
get_largest_routesRank user-facing routes in a loaded Next.js build by emitted chunk bytes, revealing which pages ship the largest bundles. Use the limit parameter to focus optimization and code-splitting efforts.
Instructions
Rank the heaviest user-facing routes in a loaded Next.js build by emitted chunk bytes.
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_largest_routes"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | How many routes to include. Defaults to 10. | |
| buildId | No | Build ID returned from load_build_stats. Omit to list loaded builds. |