Load Build Stats
load_build_statsParse a Next.js .next build directory to extract route and chunk footprint data, enabling bundle analysis and code-split recommendations.
Instructions
Parse a Next.js .next directory and load route and chunk footprint data for later analysis.
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": {
"buildDir": "<buildDir>"
},
"name": "load_build_stats"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| buildDir | Yes | Absolute or relative path to the project .next build directory, not .next/standalone | |
| buildOutputPath | No | Optional path to captured next build terminal output for deriving build duration |