convert_image
Convert images between PNG, JPEG, GIF, WebP, and ICO formats with adjustable quality settings for JPEG and WebP files.
Instructions
Convert an image to a different format (PNG, JPEG, GIF, WebP, or ICO).
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": "convert_image"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| input_path | Yes | Absolute path to the source image file | |
| output_format | Yes | Target format | |
| quality | No | JPEG/WebP quality (1-100, default 90) | |
| output_path | No | Where to save the output (defaults to same directory as input) |