Load Webpack Stats
load_webpack_statsParses the webpack module stats file (.next/stats.json) and links it to a loaded build, enabling tools to detect duplicates, explain shared chunks, trace imports, and suggest optimizations.
Instructions
Parse the webpack module stats file (.next/stats.json) and link it to a build loaded with load_build_stats. Unlocks the stats-powered tools: suggest_optimizations (enriched), find_duplicates, explain_shared_chunks, and trace_import.
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": {
"buildId": "<buildId>"
},
"name": "load_webpack_stats"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| buildId | Yes | Build ID returned by load_build_stats; the stats.json is read from that build directory |