Crop a site image
crop_imageCrop an uploaded site image to an upright pixel rectangle. Creates a new image without modifying the source: JPEG stays JPEG, WebP and AVIF become WebP, PNG and still GIF become PNG; the result is scaled down to fit 2048 px. Unreferenced originals may be removed by normal publish cleanup. Does not alter the draft: read get_site and assign the returned URL with update_site. Inspect the photo before choosing coordinates. Animated files are rejected.
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": {
"siteId": "<siteId>",
"imageUrl": "<imageUrl>",
"crop": "<crop>"
},
"name": "crop_image"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| crop | Yes | Pixel rectangle in the upright image, after EXIF orientation. This operation does not modify the original; normal unused-media cleanup still applies. | |
| siteId | Yes | ||
| imageUrl | Yes | Exact image URL uploaded to this site. |