Measure how fast a page loads
measure_speedMeasures a page's load speed on a slow 4G phone or desktop, then reports paint timing, layout shift, blocking files, and what to fix first.
Instructions
Loads one page three times from an empty cache in the Chrome or Edge on this computer, as a mid-range phone on slow 4G (Lighthouse's slow 4G as DevTools applies it: 562.5 ms per request, 1,475 Kbps down, the processor 4× slower), or as a desktop. Reports the middle run: first paint, largest paint and which element it is (with its timeline), layout shift and what moved, blocking time from long tasks, weight by kind, files that block the first paint, pictures far larger than drawn, text sent uncompressed. Then what to fix first, and a PageSpeed Insights link for real visitors' numbers. Takes about half a minute on a phone setting.
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": {
"url": "<url>"
},
"name": "measure_speed"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | The page to measure, for example https://example.com | |
| kind | No | Show only this kind of problem, with every example. Use a `kind` name from an earlier answer; for 15 minutes the same arguments re-read that check instead of checking again. | |
| device | No | phone (slow 4G, 4× slower processor) or desktop (no throttling) | phone |
| delay_ms | No | Pause between two requests to the site, in milliseconds (one request at a time). | |
| ignore_robots_txt | No | Read pages even where the site's robots.txt disallows crawling. Pass true only when the user has said the site is theirs or that they may test it (staging sites usually disallow everything). The report then says at the top that robots.txt was ignored. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tool | Yes | ||
| facts | Yes | ||
| notes | Yes | ||
| passed | Yes | ||
| target | Yes | ||
| reading | Yes | How to read this answer: the same lines end the text form | |
| findings | Yes | ||
| headline | Yes | ||
| checked_at | Yes | ||
| robots_txt | Yes | "ignored" only when the caller passed ignore_robots_txt | |
| from_earlier_check | Yes | True when this answer re-reads an earlier check (because `kind` was given) |