Find Duplicate Packages
find_duplicatesIdentify npm packages duplicated across multiple JavaScript chunks, ranked by wasted bytes, to prioritize bundle size reductions.
Instructions
Find npm packages whose code is bundled into more than one chunk, wasting bytes, ranked by wasted bytes. Requires load_webpack_stats first.
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": "find_duplicates"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Maximum duplicate packages to return. Defaults to 20. | |
| buildId | Yes | Build ID returned by load_build_stats |