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.
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": "scan_site"
}
}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) |