batch_fit_to_spec
Bulk-resize every image in a folder to meet min/max width and height specifications, saving conforming copies and reporting final dimensions and pass/fail status for each file.
Instructions
Make every image in a folder satisfy one dimension specification.
The common bulk case: point it at a folder of photos and get conforming copies, with each file's final dimensions and pass/fail reported.
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": {
"input_dir": "<input_dir>",
"output_dir": "<output_dir>"
},
"name": "batch_fit_to_spec"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| anchor | No | center | |
| suffix | No | _out | |
| backend | No | ||
| pattern | No | ||
| quality | No | ||
| input_dir | Yes | ||
| max_width | No | ||
| min_width | No | ||
| recursive | No | ||
| max_height | No | ||
| min_height | No | ||
| output_dir | Yes | ||
| orientation | No | any |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |