image_crop
Crop an image to a pixel box or target aspect ratio using gravity control. Output the cropped image in PNG, JPEG, WebP, GIF, TIFF, BMP, ICO, or AVIF.
Instructions
imagepeek: Crop an image to a box or an aspect ratio. To scale instead use image_resize. Returns a crop (out of bounds: 422 crop_out_of_bounds); auto_orient=false uses stored axes. PNG, JPEG, WebP, GIF, TIFF, BMP, ICO, AVIF; unsupported or >40 MP: not charged. Re-encoding strips EXIF/GPS/XMP/IPTC. Output >15 MB or >50 MP: uncharged 413. Images are not logged; a result is kept only with output "url" (24 h). Typically 0.5-2 s. Price: USD 0.002. Free: 3 imagepeek calls per IP per UTC day. Docs: https://tanod.dev/learn/image-crop-api.html
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "image_crop"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| top | No | Box: top in px. | |
| url | No | Public http(s) URL of the image (at most 10 MB; private, internal and IP-literal hosts are refused); or use image_base64. | |
| left | No | Box: left in px. Use left, top, width and height, or aspect. | |
| width | No | Box width in px. | |
| aspect | No | Crop ratio, e.g. 16:9; use with gravity, instead of a box. | |
| format | No | Output format (default: the input's; ICO in, PNG out). | |
| height | No | Box height in px. | |
| output | No | base64 (default): inline. url: stored for 24 hours; link, metadata. | base64 |
| gravity | No | Aspect crop anchor. | center |
| quality | No | Encoder quality 1-100 (lossy formats). | |
| auto_orient | No | Apply the EXIF orientation first. | |
| image_base64 | No | The image as standard or url-safe base64 (at most 10 MB decoded; a data:image/...;base64, prefix is fine); or use url. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| box | No | ||
| url | No | ||
| bytes | No | ||
| error | No | Only on an error result: an object {code, message}, or the reason string of an x402 PaymentRequired object. | |
| input | No | ||
| notes | No | ||
| width | No | ||
| format | No | ||
| height | No | ||
| sha256 | No | ||
| source | No | ||
| final_url | No | ||
| operation | No | ||
| expires_at | No | ||
| source_url | No | ||
| data_base64 | No | ||
| content_type | No |