get_crux_metrics
Fetch real-user Core Web Vitals metrics for a URL via Google CrUX API. Returns 75th percentile LCP, INP, CLS, FCP, TTFB ratings and overall assessment.
Instructions
Query Google Chrome User Experience Report (CrUX) API for real-user field metrics.
Returns 75th percentile ratings for LCP, INP, CLS, FCP, TTFB, and overall Core Web Vitals assessment.
Args: url: Page URL (e.g. 'https://surendranb.com/blog/article') or root origin ('https://surendranb.com'). form_factor: Device form factor filter ('ALL_FORM_FACTORS', 'PHONE', 'DESKTOP', 'TABLET'). Defaults to ALL_FORM_FACTORS. api_key: Optional Google API Key. If omitted, checks GOOGLE_API_KEY or CRUX_API_KEY environment variables.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | ||
| api_key | No | ||
| form_factor | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |