process_folder
Process all images in a folder by converting formats, resizing dimensions, or both operations simultaneously while automatically skipping non-image files.
Instructions
Apply a convert, resize, or convert-and-resize operation to all image files in a folder. Non-image files are automatically skipped.
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": {
"folder_path": "<folder_path>",
"operation": "<operation>"
},
"name": "process_folder"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| folder_path | Yes | Absolute path to the folder containing images | |
| operation | Yes | Operation to apply to every image | |
| output_format | No | Target format (required for convert / convert_and_resize) | |
| quality | No | JPEG/WebP quality (1-100, default 90) | |
| width | No | Target width in pixels | |
| height | No | Target height in pixels | |
| preset | No | Named size preset (overrides width/height) | |
| lock_aspect_ratio | No | Keep aspect ratio when resizing (default true) | |
| output_folder | No | Where to save the processed files (defaults to the same folder as input) |