How To Collect Webpack Stats
how_to_collect_statsLearn how to generate the webpack stats file (.next/stats.json) required for bundle attribution. Choose a manual recipe or an automatic action plan for Copilot to execute.
Instructions
Explain how to generate the webpack stats file (.next/stats.json) required by the bundle attribution tools. Choose manual (a recipe you apply yourself) or automatic (an action plan Copilot executes).
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": {
"method": "<method>"
},
"name": "how_to_collect_stats"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| method | Yes | manual: return a recipe to apply yourself. automatic: return an action plan for Copilot to execute. | |
| scenario | No | Collection context. Defaults to webpack. Use turbopack if the app builds with --turbopack. |