Get an icon
get_iconRetrieve a single Iconify icon by prefix:name to get dimensions, license, code snippets, and a PNG preview for use in UI development and documentation.
Instructions
Get one icon by Iconify id (prefix:name). Returns dimensions, collection, license, alias parent when this name is an alias, the Icônes URL, code snippets, and a PNG you can see. Snippets cover raw SVG, a data URL, Vue, React, Svelte, an UnoCSS class, a Tailwind Iconify class, and the Iconify name. Snippet SVGs stay on currentColor unless color is set. Use preview_icons to compare several icons.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| icon | Yes | Iconify id, for example "lucide:house" or "mdi:home". | |
| size | No | PNG size in pixels. Default 128. | |
| color | No | Hex, CSS color name, or rgb()/rgba(). Omit to keep snippet SVGs on currentColor. PNGs use #1c1917 when omitted. | |
| aliases | No | Also list other names that alias this icon. Requires the collection payload. Default false. | |
| formats | No | Snippet formats to include. Default: all of them. | |
| background | No | PNG background. Default #ffffff. Use "transparent" for no background. | |
| includeImage | No | Include the PNG. Default true. |