resize_image
Resize an image to target dimensions. Supports fit modes: 'cover' (crop to fill), 'contain' (fit within, letterbox), 'stretch' (exact size). Useful for preparing images for specific platforms, thumbnails, or social media. FREE. (FREE)
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": {
"image": "<image>",
"width": "<width>",
"height": "<height>"
},
"name": "resize_image"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | No | Resize mode: 'contain' (fit within bounds, preserve aspect ratio), 'cover' (crop to fill), 'stretch' (exact size, may distort) | contain |
| image | Yes | Base64-encoded PNG/JPEG image | |
| width | Yes | Target width in pixels (1-8192) | |
| format | No | Output format | png |
| height | Yes | Target height in pixels (1-8192) | |
| quality | No | JPEG/WebP quality (1-100) |