bundle_optimize
Generate a bundle optimization plan with specific code changes to reduce bundle size and improve performance. Analyzes package.json, build config, and imports for actionable recommendations.
Instructions
Generate a comprehensive bundle optimization plan with specific code changes (Pro)
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": {
"package_json": "<package_json>"
},
"name": "bundle_optimize"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| api_key | No | API key for authentication | |
| build_config | No | Build configuration (webpack.config.js, vite.config.ts, etc.) | |
| package_json | Yes | package.json content | |
| source_imports | No | Import statements from source files for tree-shaking analysis |