convert_format
Convert images to PNG, JPG, or WebP format, including SVG rasterization to PNG, using local processing.
Instructions
Convert an image between formats: PNG, JPG, WebP, or SVG to PNG. Works locally with Pillow. Note: SVG input is rasterized to PNG via cairosvg if available, otherwise Pillow.
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>",
"output_format": "<output_format>"
},
"name": "convert_format"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| image_path | Yes | Path to the input image file | |
| output_path | No | Path to save the output image (optional, auto-generated if omitted) | |
| output_format | Yes | Target format |