run_lighthouse
Runs a real Google Lighthouse audit and returns category scores, Core Web Vitals, failed audits, median-run spread, and prioritized savings to diagnose page performance.
Instructions
Run a real Google Lighthouse audit: 0-100 category scores, Core Web Vitals, failed audits, and a SUMMARY an agent otherwise computes by hand — LCP element + phase breakdown (TTFB / load delay / load time / render delay), TTFB with a >2 s warning, transfer bytes by domain with third-party share, top opportunities by savings. runs=N gives the median run plus min/median/max spread; warmup=true primes server caches first. Full JSON report(s) saved to data/reports/. Requires Node.js (npm i -g lighthouse or npx). Runs its own Chrome — no session/auth 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": {
"url": "<url>"
},
"name": "run_lighthouse"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | URL to audit | |
| runs | No | Run Lighthouse N times (1-5, default 1) and report the median-LCP run plus a min/median/max spread — use 3 for comparisons (staging vs live, before/after) | |
| device | No | Emulation preset (default: mobile, like Lighthouse's default) | |
| warmup | No | One plain GET before the runs to prime server-side page caches (WP Rocket, CDN), so a cold-cache TTFB doesn't poison the comparison (default: false) | |
| timeout | No | Max seconds to wait per run (default: 180) | |
| categories | No | Categories to audit (default: all four) |