Resize, Crop & Transform Image
image_resize_cropResize, crop, rotate, grayscale, and sharpen local images offline to prepare files for use while keeping them on disk.
Instructions
Resize, crop, rotate, grayscale, or sharpen a local image completely offline.
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": {
"inputPath": "<inputPath>"
},
"name": "image_resize_crop"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| fit | No | inside | |
| crop | No | Optional pixel extract region before resize | |
| width | No | Target width in px | |
| format | No | Optional format override | |
| height | No | Target height in px | |
| quality | No | ||
| grayscale | No | ||
| inputPath | Yes | Local image file path | |
| outputPath | No | ||
| rotateDegrees | No | Optional clockwise rotation degrees | |
| withoutEnlargement | No |