g_generate
Get a precise spec for drawing a custom SVG icon when no existing asset fits your need. Follow it to draw the SVG, then validate it for safe use.
Instructions
Get a precise spec for generating a custom SVG icon, then the AI (you) draws the SVG following it. Use when i_search_all finds nothing suitable. After drawing, ALWAYS pass the SVG through g_validate to sanitize and normalize it (color/size injection, XML check, security filter).
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": {
"description": "<description>"
},
"name": "g_generate"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| size | No | Target size in px (default 24). g_validate injects width/height | |
| style | No | Icon style: "outline" (stroke-based, Lucide-like, default) or "fill" (solid shapes) | outline |
| description | Yes | What the icon should depict, e.g. "a branch arrow flowing down-right", preferably with visual metaphor details |