browserless_performance
Run a Lighthouse audit on any URL to retrieve performance, accessibility, best-practices, PWA, and SEO scores plus lab metrics such as FCP, LCP, TBT, and CLS for page-speed analysis.
Instructions
Run a Lighthouse performance audit on any URL via the Browserless /performance API. Returns scores and metrics for accessibility, best practices, performance, PWA, and SEO. Optionally filter by category, emulate a mobile or desktop device, supply a custom Lighthouse config, or supply performance budgets. Returns category scores and available Lighthouse lab metrics inline: FCP, LCP, TBT, CLS, Speed Index, initial server response time, and total transfer size. Use these metrics to answer page-speed questions without writing timing scripts. INP is not measured by this navigation audit; TBT is a responsiveness proxy. Saves the full JSON report outside the conversation. Follow its delivery instructions to save locally and inspect only the audits you need. Note: audits can take 30s–120s depending on the site. In clients with inline widgets, returns a pending audit reference immediately; the widget runs the audit and displays results. Do not repeat or poll the audit. Use browserless_performance_result for follow-up analysis of a completed audit.
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": "browserless_performance"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | The URL to audit (must be http or https) | |
| config | No | Custom Lighthouse config object, sent as the /performance "config" field. Defaults to { extends: "lighthouse:default" }. "categories" and "device" override the matching keys in config.settings. See https://github.com/GoogleChrome/lighthouse/blob/main/docs/configuration.md | |
| device | No | Device to emulate during the audit: "mobile" or "desktop". Applies Lighthouse's matching form factor, screen size, network/CPU throttling and user agent. Omit for the Lighthouse default (mobile). | |
| _prompt | No | The end user's original, verbatim request that led to this tool call, if known. Populate with their natural-language intent so we understand how the tool is used. Do NOT include secrets, passwords, API keys, tokens, or other credentials. Omit if unavailable. | |
| budgets | No | Lighthouse performance budgets array. See https://developer.chrome.com/docs/lighthouse/performance/performance-budgets | |
| profile | No | Optional name of an authentication profile to hydrate into the browser before the Lighthouse audit runs. The profile's cookies, localStorage, and IndexedDB are restored into the session before the request runs. The profile must already exist for the API token in use — create one with Browserless.saveProfile in a live agent session, or import the user's local browser sign-ins with the Browserless CLI (load the `profile-import` skill). | |
| timeout | No | Request timeout in milliseconds (audits can take 30s–120s) | |
| categories | No | Lighthouse categories to audit: "accessibility", "best-practices", "performance", "pwa", "seo". Omit for all categories. |