convert_format
Convert an image file to PNG, JPEG, or WebP by providing its path and desired format. JPEG gets a white background for transparent areas.
Instructions
Convert an image between PNG, JPEG and WebP. JPEG gets a white background where the source is transparent.
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>",
"format": "<format>"
},
"name": "convert_format"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| format | Yes | Target format | |
| image_path | Yes | Local path to the image |