Resize Image
resize_imageResize an image to the given width/height.
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": "resize_image"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| fit | No | How to fit within width/height. | contain |
| width | No | Target width in pixels. | |
| format | No | Output format (jpeg, png, webp, ...). Defaults to source format. | |
| height | No | Target height in pixels. | |
| source_url | No | Public URL of the image. | |
| file_base64 | No | Base64-encoded image. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||