Suggest Optimizations
suggest_optimizationsAnalyze Next.js build evidence to return severity-ranked, concrete bundle optimizations with byte-size impact and actionable changes.
Instructions
Aggregate route, chunk, and (when loaded) webpack-stats evidence into severity-ranked, evidence-backed bundle optimizations tied to concrete Next.js actions. Every suggestion is sized in emitted on-disk bytes. Works on manifests alone; load_webpack_stats first for dedupe, shared-chunk, and package-import suggestions.
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": "suggest_optimizations"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Maximum suggestions to return. Defaults to 15. | |
| buildId | Yes | Build ID returned by load_build_stats |