measure_page
Reload the active tab or load a URL, then return Core Web Vitals, load timings, and resource breakdowns rated good, needs improvement, or poor. Use it to diagnose page speed.
Instructions
Measure how fast a page loads, like a small Lighthouse performance run, in the session as it is: its login, device and throttling (set_emulation). Reloads the active tab (or loads url), waits for its requests to go quiet, and returns server response time, first and largest contentful paint (and the element it was), cumulative layout shift, total blocking time from long tasks, DOMContentLoaded and load times, requests and bytes by type and host, and the largest resources, each metric rated good, needs improvement or poor by the Core Web Vitals and Lighthouse thresholds. Use start_profiling instead to find which JavaScript is slow. Reloading loses unsaved page state.
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": {
"sessionId": "<sessionId>"
},
"name": "measure_page"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | No | Load this URL instead of reloading the current page. | |
| timeout | No | Milliseconds to wait for the load and for its requests to go quiet, at most 25000. Default 20000. | |
| sessionId | Yes | The id returned by open_browser_session. Errors if no open session has it. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cls | Yes | Cumulative layout shift. | |
| url | Yes | ||
| bytes | Yes | Bytes transferred (cross-site resources without timing headers count 0). | |
| fcpMs | No | First contentful paint. | |
| lcpMs | No | Largest contentful paint, and the element it was. | |
| tbtMs | No | Total blocking time: long tasks' time past 50 ms, after first paint. | |
| byHost | Yes | ||
| byType | Yes | ||
| loadMs | No | ||
| ttfbMs | No | Time to the first byte of the page from the server. | |
| largest | Yes | ||
| ratings | No | Each metric as good, needs improvement or poor, by the Core Web Vitals and Lighthouse thresholds. | |
| requests | Yes | ||
| longTasks | Yes | ||
| conditions | Yes | The session's device and throttling during the load. | |
| lcpElement | No | ||
| longestTaskMs | No | ||
| domContentLoadedMs | No |