Trace a local image into SVG
abox_image_traceTrace JPEG, PNG, or WebP logos and line art into single-color SVG paths with adjustable threshold, inversion, and detail; writes a verified static path-only SVG for vector use.
Instructions
Trace a still JPEG, PNG or WebP into a single-color SVG path using the website mask, contour and curve engines. Best suited to logos and line art; this is a lossy shape interpretation. Supports automatic or explicit threshold, inversion and detail. Refuses overly complex traces. Writes and verifies a static path-only SVG; requires a local browser.
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": {
"input_path": "<input_path>",
"output_path": "<output_path>"
},
"name": "abox_image_trace"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| fill | No | #000000 | |
| detail | No | auto | |
| invert | No | ||
| min_area | No | ||
| threshold | No | otsu | |
| input_path | Yes | Absolute local filesystem path. URLs and network shares are refused. | |
| output_path | Yes | Absolute local filesystem path. URLs and network shares are refused. | |
| corner_angle | No |