Optimize photos
optimize_imagesClean up the photos already in the draft (uploaded before automatic clean-up, or added with write_file): turned upright, location and camera data removed, resized to at most 2000 px, and smaller WebP copies made that phones load automatically. Photos that are already done are skipped. Publish afterwards to make the live site faster.
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": {
"site": "<site>"
},
"name": "optimize_images"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| site | Yes | Site slug (e.g. "kopitiam-muar") or id |