measure_coverage
Measure JavaScript and CSS coverage on the current page to identify unused code and optimize performance. Returns per-file byte usage showing executed versus loaded bytes.
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.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| reset | No | Stop any in-progress coverage, clear data, and restart fresh | |
| type | No | Which coverage to measure: 'js' for JavaScript only, 'css' for CSS only, 'all' for both | all |