crux_lcp_subparts
Decompose Largest Contentful Paint into TTFB, resource load delay, load duration, and render delay to identify the dominant phase and target the right performance fix.
Instructions
Decompose LCP into its four subparts via the CrUX API for actionable performance diagnosis.
Returns p75 values for TTFB, resource load delay, resource load duration, and element render delay, plus the dominant phase (the subpart with the highest p75 ms). Knowing which phase dominates turns "LCP is 4.2s" into a specific fix (server, preload, image size, or render-blocking resources).
form_factor: "PHONE" (default) | "DESKTOP" | "TABLET" | "ALL_FORM_FACTORS" Requires CRUX_API_KEY environment variable. Verdicts: good | needs_improvement | poor | not_enough_data | missing_key | fetch_error. Adapted from claude-seo lcp_subparts.py (agricidaniel, MIT).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | ||
| form_factor | No | PHONE |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |