Extract Images Audit
extract_images_auditAudit a web page's images to identify optimization opportunities. Detects all images including lazy-loaded ones, analyzes formats, alt text, responsive sizing, and LCP candidates, then returns a score with actionable recommendations.
Instructions
Comprehensive image audit for a web page. Uses Puppeteer to detect all images (img, picture, CSS backgrounds) including lazy-loaded ones. Analyzes format (WebP/AVIF adoption), alt text quality, responsive images (srcset), sizing optimization, lazy loading correctness, LCP candidate optimization, and file sizes. Returns a 0-100 score with per-image details and actionable recommendations.
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": "extract_images_audit"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | The URL of the page to audit | |
| device | No | Viewport preset to render the page with | desktop |
| timeout | No | Navigation timeout in milliseconds |