Inspect an image before tracing
inspect_iconReport an image's size, format and transparency plus the trace settings it would use, without tracing. Sanity-check a source or explain a mode choice before overriding it.
Instructions
Report what an image is (size, format, transparency) and what the tracer WOULD do with it — colour vs mono, gradients on or off, the mono cut, the resolution it would trace at — without tracing. Fast. Use it to sanity-check a source, or to explain a choice before overriding it.
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": "inspect_icon"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | No | auto (default) counts the inks: one ink on paper traces mono, which is far cleaner for line art; anything else traces colour. | |
| image | Yes | Path to a PNG, JPEG, WebP, GIF, BMP or SVG file. Relative paths resolve against the working directory. | |
| detail | No | high lifts the flat-art raster cap 2048 → 4096: crisper, ~4x the work. | |
| strokes | No | Trace LINE ART as centreline strokes with a measured stroke-width (open and closed stroked paths you can re-weight), instead of filled outlines of each line. Ink no stroke explains (a dot, a note head) still becomes a fill. In colour mode each stroke is painted in the ink it runs through. Default off. | |
| fidelity | No | Shape-beautification tolerance in px; 0 disables snapping to circles/lines. | |
| layering | No | Colour mode. stacked (default): a shape paints under the shapes in front of it — fewer nodes, no hairline seams between colours, shapes stay whole in a design tool. tiled: shapes fit edge to edge, with a hole wherever another sits inside. Same edges either way; mono ignores it. | |
| despeckle | No | 0 keeps every speck, 100 is aggressive. Default 25. | |
| gradients | No | auto (default) probes for real colour ramps. flat forces solid fills (right for most icons). rich forces gradient fitting. | |
| smoothing | No | 0 = crisp and node-dense, 100 = smooth and sparse. Default 50. | |
| flattenOnto | No | Composite a TRANSPARENT source onto this colour before tracing, e.g. "#ffffff". Omit to keep the alpha. (Not the card colour — that is appearance.background.) | |
| strokesOnly | No | With `strokes`: NO filled paths at all — the ink no stroke explains (a dot, a note head, a solid shape) is drawn as round-capped strokes too, along its own middle and as wide as it is there; a dot is a round-capped point. Nothing is dropped, but a shape that is not a line is approximated (a square comes back with round ends). For plotters and stroke-only icon sets. Default off. | |
| removeBackground | No | Drop the detected background layer so the SVG comes back transparent. |