Convert to SVG · uses 1 credit
convert_to_svgTurns your image into an SVG. Uses 1 credit.
image: the name check_price returned, such as "logo.png · 1 credit". It converts only an image whose price an earlier check_price call returned, in the last 30 minutes; otherwise nothing is charged and the reply says to check the price first. Set always=true only when the user answered "Yes, always". It waits about 20 seconds and returns the facts, a 24-hour download link and, for a small SVG, its text. It costs 1 credit when the SVG is delivered, once; failures are free. If it says the image is still converting, call it again with the same image: that finishes it and never charges twice.
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": "<image>"
},
"name": "convert_to_svg"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| image | Yes | The name check_price returned, such as "logo.png · 1 credit". | |
| always | No | Only when the user answered "Yes, always". |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | No | Set when the call could not proceed. | |
| status | No | ||
| message | Yes | The reply's text without its IDs and SVG text, for hosts that show only this. | |
| file_name | No | ||
| retryable | No | ||
| svg_bytes | No | ||
| path_count | No | ||
| svg_inline | No | The SVG text is in the reply's text, never in these fields. | |
| color_count | No | ||
| next_action | Yes | What to do next; guidance, never spending permission. | |
| request_key | No | ||
| download_url | No | ||
| conversion_id | No | ||
| price_credits | No | ||
| credits_charged | No | Credits charged by this call only. | |
| credits_available | No | The balance afterwards. | |
| download_expires_at | No | ||
| retry_after_seconds | No | ||
| ask_before_converting | No |