asset_vectorize
Vectorize a raster image into a scalable SVG with automatic or manual mode selection, adjustable palette size, and maximum path count. Output is optimized with SVGO for clean vector graphics.
Instructions
Convert a raster image to SVG. Tries in order: Recraft /vectorize (if PROMPT_TO_BUNDLE_RECRAFT_VECTORIZE_URL is set), vtracer on PATH, potrace on PATH, then a built-in posterize run-length fallback. Passes all output through SVGO when installed.
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": "asset_vectorize"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| image | Yes | ||
| mode | No | auto | |
| palette_size | No | ||
| max_paths | No | ||
| output_dir | No |