oc_vitals
Collect LCP, CLS, INP, TTFB, and FCP Web Vitals from any page without injecting scripts. Returns performance ratings based on browser timing entries.
Instructions
Collect a read-only Web Vitals snapshot from the current page without adding page scripts or package dependencies. Returns LCP, CLS, INP, TTFB, and FCP with Core Web Vitals ratings where browser timing entries are available.
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": {
"tabId": "<tabId>"
},
"name": "oc_vitals"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tabId | Yes | REQUIRED Tab ID to collect Web Vitals from. | |
| timeoutMs | No | Maximum collection time in ms. Default 5000, min 100, max 30000. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tabId | Yes | ||
| action | Yes | ||
| source | Yes | ||
| vitals | Yes | ||
| noDependency | Yes |