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.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| image | Yes | ||
| mode | No | auto | |
| palette_size | No | ||
| max_paths | No | ||
| output_dir | No |