Draw Original UI Icon
draw_iconCreate custom local SVG icons from structured vector primitives like paths, lines, circles, and rectangles, then verify the rendered result instead of using text-to-image generation.
Instructions
Produce a local custom SVG icon from structured path, line, circle, rectangle, ellipse or polyline primitives authored by the coding agent. Not text-to-image generation; verify the rendered result.
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": {
"name": "<name>",
"elements": "<elements>"
},
"name": "draw_icon"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| dir | No | Output folder, default ./public/icons/custom. | |
| name | Yes | Lowercase kebab-case filename, e.g. project-progress. | |
| size | No | Rendered icon dimensions, default 24. | |
| elements | Yes | Vector primitives in a 24x24 coordinate system. | |
| overwrite | No | Explicitly replace the target SVG; default false. | |
| strokeWidth | No | Outline width, default 1.75. |