Get icon code
get_iconGet one icon, outline or solid, as SVG, JSX, a framework component snippet, a data URI, CSS mask, Tailwind class, CDN URL, sprite, font, Iconify id, or shadcn command. Unknown names return the closest real names.
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>"
},
"name": "get_icon"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Icon name from search_icons, such as "arrow-right" (PascalCase also works). | |
| size | No | Width and height in pixels (default 24). | |
| color | No | Stroke color, or fill color for solid (default currentColor). | |
| style | No | Icon style (default "outline"). "solid" is the filled twin, for selected or active states; it ignores stroke options. | |
| format | No | Output format (default "svg"). Framework ids return an import snippet. | |
| strokeWidth | No | Stroke width (default 2). Outline only. | |
| absoluteStrokeWidth | No | Keep the stroke width constant when resizing. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | ||
| code | Yes | ||
| name | Yes | ||
| style | Yes | ||
| format | Yes | ||
| install | No | ||
| componentName | Yes |