Get a page scan
get_scanOne page scan: where it is, how many images it found and how many are still compressing, the ones it skipped with the reason for each, the totals saved, and, once it has finished, its page report in audit: how many images are oversized, lack width and height or alt text, or are lazy loaded in the wrong place, and the largest contentful paint. Poll this, a few seconds apart, while a scan runs: it is done once its status is no longer queued or scanning and images_in_progress is 0, and its report's suggested_alt texts once alt_texts_in_progress is 0 too. The images themselves are not in this answer, so polling stays small: once images_in_progress is 0, call list_images with scan set to this id for them, a page at a time, with their sizes and download links, or create_zip with scan_id to download every finished one at once. Pass audit_images true, once, after the scan is done, for every image address on the page with what is worth fixing about each; leave it out while 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": {
"id": "<id>"
},
"name": "get_scan"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | The scan's id. | |
| audit_images | No | Add the page report's entry for every image address on the page (up to 1000). Ask once the scan is done, not while polling. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | No | The scan's id. | |
| url | No | The page scanned. | |
| hint | No | What to do next: poll again while the scan or its images are still running, then where to read its images. | |
| note | No | What the scan found, or why it stopped. | |
| audit | No | The page audit: oversized images, missing dimensions and alt text, lazy loading in the wrong place, the largest contentful paint. Null until the scan has finished. | |
| status | No | ||
| skipped | No | The images the scan found and did not compress, each with why. | |
| crawl_id | No | The site crawl this scan is a page of, for get_crawl, or null. | |
| settings | No | ||
| share_url | No | The page report's public link while it is shared; it answers only while the account is on a paid plan. | |
| created_at | No | ||
| updated_at | No | ||
| saved_bytes | No | ||
| images_count | No | ||
| original_size | No | Bytes, over the finished images. | |
| saved_percent | No | ||
| optimized_size | No | Bytes, over the finished images. | |
| images_finished | No | ||
| images_in_progress | No | ||
| alt_texts_in_progress | No | Finished images whose AI alt text for the audit's suggested_alt is still being written. |