Convert an image
convert_imageConvert a PNG, JPEG or WebP image into an editable PowerPoint (.pptx) and/or SVG and return download links. Spends credits only when files are delivered (SVG 1, PowerPoint 2); a failed conversion is not charged. Waits up to about 45 seconds; if still running, returns conversion_id for get_conversion. Identical requests within 10 minutes reuse the same conversion. The first PowerPoint-only conversion (outputs: pptx) of an account signed up with Google is free.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "convert_image"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| outputs | No | pptx = editable PowerPoint (2 credits), svg = editable SVG (1 credit), both = 3 credits. | pptx |
| image_url | No | Public https URL of a PNG, JPEG or WebP image (up to 25 MiB). Private or internal addresses are refused. | |
| mime_type | No | Required with image_base64. | |
| image_base64 | No | Base64-encoded PNG, JPEG or WebP bytes (up to 5 MB decoded). Use instead of image_url for local files. |