check_image_optimization
Analyze up to 20 webpage images for next-gen formats, file size, lazy loading, responsive attributes, and dimensions to identify optimization issues and get a scored summary.
Instructions
Check image optimization on a webpage. Analyzes up to 20 images for format (WebP/AVIF preferred), file size (<100KB pass / 100-500KB warn / >500KB fail), lazy loading (loading="lazy"), responsive attributes (srcset/sizes), and dimension attributes (width/height for CLS prevention). Returns per-image details with issues and a summary with score (0-100), next-gen format rate, lazy loading rate, and dimension rate.
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": "check_image_optimization"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | Target webpage URL to analyze. Must start with https:// or http://. Maximum 2048 characters. |