get_icon
Fetches an icon as SVG markup or precompiled React JSX, Vue 3, Svelte, or Data URI code with configurable size, color, and stroke width, ready to use by identifier or database ID.
Instructions
Retrieve the vector markup or pre-compiled framework component code for an icon (SVG, React JSX, Vue 3, Svelte, or Data URI).
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 | Full icon identifier (e.g. "lucide:shopping-cart", "heroicons:bell") or numeric database ID. | |
| size | No | Width and height dimension in pixels (e.g. 20, 24, 32). Default is 24. | |
| color | No | Fill or stroke color (e.g. "currentColor", "#4f46e5", "rgb(99, 102, 241)"). Default is "currentColor". | currentColor |
| format | No | Output framework format. Default is "svg". Use "react" to get an inline JSX React component with TypeScript props. | svg |
| strokeWidth | No | Stroke thickness for stroke-based outline icon packs (e.g. 1.5, 2). Default is 2. |