scan_site
Trigger a PageSpeed Insights scan for a website URL to get performance metrics, with options to wait for results or dispatch asynchronously.
Instructions
Trigger a PageSpeed Insights scan for a website URL. Creates the site if not already tracked. By default waits for the scan to complete and returns performance metrics (30-60 seconds). Set wait=false to dispatch asynchronously and get a job_id for polling.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | The full URL to scan (e.g., https://example.com) | |
| wait | No | If true (default), wait for scan to complete and return results. If false, dispatch asynchronously and return job_id immediately. | |
| strategy | No | Scan strategy: mobile or desktop (default: mobile) |