get_icon
Retrieve a specific icon by name and get ready-to-use SVG content. Supports Iconify prefix:name format for quick access.
Instructions
Get a specific icon by name. For Iconify, use "prefix:name" format (e.g., "mdi:home", "lucide:settings", "simple-icons:github"). Returns SVG content ready for use.
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. For iconify: "prefix:name" (e.g., "mdi:home", "lucide:user", "heroicons:cog-6-tooth") | |
| size | No | Icon size in pixels | |
| color | No | Icon color as hex (e.g., "#ff0000", "#000000") | |
| format | No | svg | |
| library | No | Icon library. Use "iconify" (recommended) or legacy: "fontawesome", "material", "heroicons" | iconify |
| optimize | No | Enable SVG optimization to reduce file size |