crux_page_vitals
Fetch Core Web Vitals (LCP, INP, CLS, FCP, TTFB) for a URL. Returns p75 percentile and rating per metric, or indicates insufficient data.
Instructions
Fetch current Core Web Vitals (LCP, INP, CLS, FCP, TTFB) for a URL from the CrUX API.
form_factor: "ALL_FORM_FACTORS" | "PHONE" | "DESKTOP" | "TABLET" Returns p75 percentile and a good/needs_improvement/poor rating per metric. If the URL has insufficient data (<1000 real users over 28 days), returns verdict=not_enough_data. Requires CRUX_API_KEY environment variable (Google API key with Chrome UX Report API enabled).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | ||
| form_factor | No | ALL_FORM_FACTORS |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |