Resize several images at once
image_batch_resizeCall this tool to resize every image in paths at once, keeping aspect ratio, each named -x.. One of width/height lets the other follow; with both, each fits inside the box. Free: 5 files a call, 4 MP.
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": {
"paths": "<paths>",
"out_dir": "<out_dir>"
},
"name": "image_batch_resize"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| paths | Yes | Names of images uploaded with image_upload | |
| width | No | Target width in pixels | |
| height | No | Target height in pixels | |
| out_dir | Yes | Not a directory here: every output comes back as its own download link valid for one hour. Any value is accepted and ignored | |
| overwrite | No | Replace out_path if it already exists. Default false. Never allows an output to be one of the inputs |