Get icon SVG
get_iconSVG of one icon in a style, two colours and a stroke weight, and code to save in a project: code "tsx" (default) is a React component (size, className and title props; main colour currentColor so text colour classes work; accent from the CSS variable --icon-accent), "html" an inline SVG snippet, "svg" the file only. format "svg" is a still icon (1-2 filled paths, works in PowerPoint, Figma, web); "anim-svg" plays its motion in browsers with no player or script.
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": {
"id": "<id>"
},
"name": "get_icon"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Icon id from search_icons (old ids still work) | |
| code | No | tsx (default): a React component · html: an inline SVG snippet · svg: the SVG file only | |
| lang | No | Language of the label and licence link (as in search_icons). Default en | |
| mode | No | anim-svg only: loop (default), once, or hover | |
| size | No | width and height attributes. Default 24 | |
| style | No | Default line | |
| accent | No | Accent colour for the duo style, hex like #FFB020 | |
| format | No | Default svg | |
| weight | No | Stroke weight for line and duo, 0.5-2.5. Default auto: by size when you give one (24 px = 1.75, 48 = 1.25, 128+ = 0.75), else 1.25 | |
| primary | No | Main colour, hex like #1E2A4A, or "currentColor" |