Export Image as SVG
vectorize_imageConvert a completed canvas image into a downloadable SVG using SVG App's existing vectorizer and credit billing. Accepts canvasId and optionally revisionId from a generation result. Leaves the canvas's active revision unchanged. Returns a pending generationId and a stable assetUrl immediately; poll get_generation_status until completed, then download assetUrl as SVG. Each call starts a new billed vectorization; use status polling instead of calling this tool again.
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": {
"canvasId": "<canvasId>"
},
"name": "vectorize_image"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| canvasId | Yes | Canvas id returned by an image generation tool. | |
| workspace | No | Optional workspace id or slug from list_workspaces. Defaults to the user's personal workspace. Use the same workspace for every call in a workflow, because generations, mascots, and palettes belong to one workspace. | |
| revisionId | No | Optional source revision; defaults to the canvas's current revision. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| status | Yes | ||
| assetUrl | Yes | ||
| canvasId | Yes | ||
| mimeType | Yes | ||
| nextAction | Yes | ||
| revisionId | Yes | ||
| generationId | Yes |