pagespeed_audit
Run a PageSpeed Insights audit on any URL to get Lighthouse performance scores, Core Web Vitals, and top optimization opportunities for mobile or desktop.
Instructions
Run a PageSpeed Insights audit via Google's PSI API v5.
Requires GOOGLE_API_KEY environment variable (plain API key, not service account). The PageSpeed Insights API must be enabled in the GCP project.
strategy: "mobile" (default) or "desktop". Returns Lighthouse performance score, Core Web Vitals, and top opportunities. Verdicts: good (score>=90) | needs_improvement (50-89) | poor (<50) | missing_key | fetch_error.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | ||
| strategy | No | mobile |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |