resize_image
Resize images to target dimensions using high-quality Lanczos resampling, preserving aspect ratio to prevent distortion when needed.
Instructions
Resize an image with high-quality Lanczos resampling. If keep_aspect is true, fits within width x height without distorting.
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_path": "<image_path>",
"width": "<width>",
"height": "<height>"
},
"name": "resize_image"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| width | Yes | ||
| height | Yes | ||
| image_path | Yes | ||
| keep_aspect | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |