batch_convert
Convert multiple files to a target format at once using glob patterns or explicit paths, with parallel execution and conflict handling.
Instructions
批量转换多个文件,支持 Glob 模式匹配与并行执行。
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": {
"output_format": "<output_format>"
},
"name": "batch_convert"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| options | No | 与单文件转换相同的选项 | |
| parallel | No | 并行数,默认 1 | |
| output_dir | No | 输出目录 | |
| input_paths | No | 文件路径数组(与 input_pattern 至少一个) | |
| on_conflict | No | 冲突处理策略 | rename |
| input_pattern | No | Glob 模式,如 /data/*.png(与 input_paths 至少一个) | |
| output_format | Yes | 目标格式 |