draw_icon
Stamp clean two-tone braille pictographic icons onto a canvas from built-ins or trace SVG/PNG art for bullets, badges, or header marks.
Instructions
Stamp a clean pictographic icon onto the canvas as high-resolution Unicode braille line-art, in the flat, two-tone, hand-inked spirit of the Claude blog's spot illustrations. Either pick a builtin name (arrow, bolt, bricks, chat, check, city, code, cube, gear, heart, key, magnifier, spark, star, terminal) or give an image path (SVG, PNG, ...) to trace any flat illustration or logo into the same braille-icon style — the blog's own art traces cleanly. size sets the width in cells (height auto). Filled shapes become solid ink, strokes stay fine lines. weight thickens the linework (scales the pen for a builtin, dilates thin strokes for a traced image); for a traced image, threshold sets the ink cutoff. invert flips ink/paper (use it for light-on-dark art). Great as a bullet, a badge, a header mark, or a motif beside a title.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "draw_icon"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| x | No | ||
| y | No | ||
| name | No | Which icon to draw from the builtin library. Provide this or `path`. | |
| path | No | Image file (SVG/PNG/...) to trace into a braille icon. Provide this or `name`. | |
| size | No | Icon width in characters. Height is auto (a builtin reads square). | |
| invert | No | Swap ink and paper (draw as negative space, or trace light-on-dark art). | |
| weight | No | Stroke thickness. Higher = bolder, inkier lines. For a builtin it scales the pen; for a traced image it dilates thin line art so it reads solid. | |
| threshold | No | Traced image only: luminance cutoff — pixels darker than this become ink. | |
| transparent | No | Layer the icon over existing art (blank cells are skipped). Off = paste opaquely. |