image_resize
Resize, crop-fit, and convert images (PNG, JPEG, WebP, AVIF, GIF, TIFF, SVG) to WebP, PNG, JPEG, or AVIF. Shrink screenshots for vision models, create thumbnails, or change formats.
Instructions
Image Resize & Convert — Resize, crop-fit and convert images (PNG, JPEG, WebP, AVIF, GIF, TIFF, SVG input) to webp, png, jpeg or avif. Auto-rotates by EXIF. Use to shrink screenshots before sending them to a vision model, create thumbnails, or convert formats. Params: image_base64 or image_url (one required), width, height (max 4096), fit (inside default | cover | contain | fill), format (webp default), quality (1-100, default 80). Cost: $0.0045 USDC per call. Latency p99: 1500ms.
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_resize"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| fit | No | inside | |
| width | No | ||
| format | No | webp | |
| height | No | ||
| quality | No | ||
| image_url | No | Public URL of the image (max 15 MB) | |
| image_base64 | No | Base64 image data (data: URI prefix allowed) |