dep_analyze_size
Estimates the total size of node_modules from package.json without installing. Uses bundlephobia API to get minified and gzipped sizes for production dependencies.
Instructions
Estimate total node_modules size from package.json without installing. Uses the bundlephobia API to get minified and gzipped size for each production dependency.
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": {
"project_dir": "<project_dir>"
},
"name": "dep_analyze_size"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| project_dir | Yes | Absolute path to the project directory containing package.json |