Convert Folder
convert_folderBatch convert every image in a folder to AVIF or WebP, with options for recursive subfolders, quality control, and custom output location.
Instructions
Batch convert all images in a folder to AVIF or WebP format
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": {
"inputFolder": "<inputFolder>",
"outputFormat": "<outputFormat>"
},
"name": "convert_folder"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| quality | No | Quality 1-100, default 75 | |
| critical | No | If true, apply 25% quality drop | |
| recursive | No | Include subfolders, default false | |
| inputFolder | Yes | Path to the input folder | |
| outputFolder | No | Optional output folder (default: same as input) | |
| outputFormat | Yes | Output format | |
| skipExisting | No | Skip if output exists, default true |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| total | Yes | ||
| failed | Yes | ||
| results | Yes | ||
| skipped | Yes | ||
| converted | Yes |