convert_image
Convert image files between formats including PNG, JPEG, WebP, GIF, BMP, TIFF, ICO, and AVIF. Specify target format, quality settings, and output location for format compatibility.
Instructions
Convert an image to a different format.
Supported formats: PNG, JPEG, WebP, GIF, BMP, TIFF, ICO, AVIF.
Args: path: Absolute path to the image file. format: Target format (e.g. 'png', 'webp', 'jpeg'). output_path: Where to save. Defaults to .<new_ext> next to input. quality: Quality for lossy formats (1-100). Default 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": {
"path": "<path>",
"format": "<format>"
},
"name": "convert_image"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | ||
| format | Yes | ||
| output_path | No | ||
| quality | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||