measure_coverage
Measure JavaScript and CSS code coverage on the page to identify unused bundles and oversized dependencies. Returns per-file byte usage for performance optimization.
Instructions
Measure JavaScript and CSS code coverage on the current page. Returns per-file byte usage showing how much code was actually executed/applied versus total loaded. Useful for identifying unused bundles, oversized dependencies, and performance optimization opportunities.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "measure_coverage"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| type | No | Which coverage to measure: 'js' for JavaScript only, 'css' for CSS only, 'all' for both | all |
| reset | No | Stop any in-progress coverage, clear data, and restart fresh |