Convert image format
image_convertConvert an image to a target format such as JPEG, PNG, WebP, AVIF, TIFF, HEIF, or GIF. Set quality and output path to control file size and destination.
Instructions
Convert an image to a target 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": {
"input_path": "<input_path>",
"output_format": "<output_format>"
},
"name": "image_convert"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| quality | No | Quality (1-100). Default: 85. | |
| input_path | Yes | Source image path. | |
| output_path | No | Output image path. | |
| output_format | Yes | Target image format. |