image_edit
Edit images by resizing, cropping, rotating, flipping, converting format or quality, or applying grayscale to files or folders; originals are preserved.
Instructions
Resize (fit contain/cover/stretch; no upscale unless upscale), crop {x,y,width,height}, rotate, flip, grayscale, convert (quality); file or folder; never overwrites originals.
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": {
"path": "<path>"
},
"name": "image_edit"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| fit | No | ||
| crop | No | ||
| flip | No | ||
| path | Yes | ||
| width | No | ||
| format | No | ||
| height | No | ||
| rotate | No | 90/180/270 | |
| suffix | No | ||
| out_dir | No | ||
| quality | No | ||
| upscale | No | ||
| grayscale | No | ||
| overwrite | No |