image_compress
Batch compress images by adjusting quality from 1 to 100 to reduce file size before sharing or storing, with outputs written to a target directory.
Instructions
批量按质量压缩(quality 1-100,越小文件越小,常用 60-85)。
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_compress"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| quality | No | ||
| input_path | Yes | ||
| output_dir | Yes |