image_convert
Convert image files or entire folders between jpg, png, webp, bmp, and tiff formats, saving the results to a specified output directory.
Instructions
批量格式转换,fmt 取 jpg/png/webp/bmp/tiff(不带点也行)。input_path 可为单文件或目录。
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_path": "<input_path>",
"output_dir": "<output_dir>"
},
"name": "image_convert"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| fmt | No | webp | |
| input_path | Yes | ||
| output_dir | Yes |