Convert Image
convert_imageConverts a single image to AVIF or WebP format with adjustable quality and optional compression settings, enabling smaller image outputs.
Instructions
Convert a single image to AVIF or WebP format using ImageMagick
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": {
"inputPath": "<inputPath>",
"outputFormat": "<outputFormat>"
},
"name": "convert_image"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| quality | No | Quality 1-100, default 75 | |
| critical | No | If true, apply 25% quality drop for smaller file size | |
| inputPath | Yes | Path to the input image file | |
| outputPath | No | Optional custom output path | |
| outputFormat | Yes | Output format |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| format | Yes | ||
| quality | Yes | ||
| savings | Yes | ||
| success | Yes | ||
| inputPath | Yes | ||
| inputSize | Yes | ||
| outputPath | Yes | ||
| outputSize | Yes |