Re-vectorize with other settings
revectorizeRe-vectorizes a stored result (result_id and token from vectorize) with other settings, free for 24 hours after the first vectorization. Used by the Shapesoda window.
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": {
"result_id": "<result_id>",
"token": "<token>"
},
"name": "revectorize"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| token | Yes | Result token (the token parameter of the result links). | |
| colors | No | Number of colors: 'auto', 'unlimited', or an integer 2–32 (max_colors goes up to 256). Default auto. | |
| corners | No | Keep corners sharp or round them. | |
| palette | No | Fixed colors #rrggbb (2–256), as a list or a comma-separated string. Not combined with colors or max_colors. | |
| quality | No | Input quality: low for blurry/noisy/JPEG-heavy images. Default auto. | |
| min_area | No | Smallest shape kept, in px²; smaller specks are dropped. Overrides the preset. | |
| result_id | Yes | result_id from vectorize or revectorize. | |
| image_type | No | Kind of image: artwork with smooth (anti-aliased) edges, artwork with hard pixel edges, or photo. Default auto. | |
| smoothness | No | Contour smoothing 1–10 (higher: smoother, fewer nodes). | |
| transparency | No | Transparent areas: keep (stay transparent), white, or a background color #rrggbb. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | No | ||
| files | Yes | Download link per format. | |
| width | Yes | ||
| height | Yes | ||
| result_id | No | ||
| svg_bytes | No | ||
| expires_at | No | ||
| download_url | No | Link to the first requested format. | |
| credits_charged | No | ||
| credits_remaining | Yes | ||
| free_remaining_today | No | Free MCP vectorizations left this calendar month, UTC (used before credits). The name is kept for compatibility. |