i_bitmap_to_svg
Vectorize flat icons, logos, and simple illustrations into layered color SVGs; use binary mode for clean 2-color traces. Photos are rejected to prevent huge blurry files.
Instructions
Vectorize a flat graphic image (icon / logo / flat illustration / screenshot of simple shapes) into a layered color SVG. Input object awareness: PHOTO-type images (high color entropy) are rejected — photo-to-SVG produces huge blurry files; keep photos as PNG/WebP. Only convert images you have rights to. Binary mode gives a clean 2-color result for icons/logos.
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": {
"path": "<path>"
},
"name": "i_bitmap_to_svg"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Local image file path (PNG/JPEG, flat graphic — not a photo) | |
| color_mode | No | "color" = multi-color layered tracing (default); "binary" = 2-color clean vector for icons/text | color |
| max_colors | No | Color layer count for color mode (2-64, default 16) | |
| allow_photo | No | Allow photo-like images through (not recommended — output will be huge and blurry) | |
| max_dimension | No | Downscale guard: input larger than this is reduced before tracing (default 1024) |