convert_format
Convert images to PNG, JPG, or WebP. When converting to JPG, transparency is flattened onto white for clean output.
Instructions
Convert an image to another format (png, jpg, webp). Flattens transparency onto white when converting to jpg.
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": {
"image_path": "<image_path>",
"target_format": "<target_format>"
},
"name": "convert_format"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| image_path | Yes | ||
| target_format | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |