crux_history
Retrieve 40 weeks of Core Web Vitals metrics (p75) for a URL. Choose form factor and metric to analyze performance trends.
Instructions
Fetch 40 weeks of Core Web Vitals history for a URL from the CrUX History API.
form_factor: "ALL_FORM_FACTORS" | "PHONE" | "DESKTOP" | "TABLET" metric: one of largest_contentful_paint | interaction_to_next_paint | cumulative_layout_shift | first_contentful_paint | experimental_time_to_first_byte Returns p75 per weekly collection period, oldest to newest. Requires CRUX_API_KEY environment variable.
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": "crux_history"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | ||
| metric | No | largest_contentful_paint | |
| form_factor | No | ALL_FORM_FACTORS |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |