run_lighthouse
Audit website performance, accessibility, SEO, and best practices using Lighthouse to identify optimization opportunities and core web vitals.
Instructions
Run a Lighthouse performance audit on a URL.
Returns:
Performance, Accessibility, Best Practices, and SEO scores
Core Web Vitals (LCP, CLS, TBT/INP proxy, FCP, TTFB)
Optimization opportunities with estimated savings
Diagnostics (long tasks, layout shifts, etc.)
SEO audit results (crawlability, meta tags, etc.)
Use this for performance analysis. Run separately for mobile and desktop if both matter.
Note: Requires Lighthouse CLI to be installed (npm install -g lighthouse).
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 | The URL to audit | |
| device | No | Device type to emulate (default: mobile) | |
| categories | No | Categories to audit (default: all) | |
| saveReport | No | Save HTML report to disk (default: false) |