Get icon code
get_iconGet ready-to-paste code for one fmicon icon: raw SVG, React, React Native, Vue, Svelte, vanilla JS or a CDN link. Choose a style, size, colour and stroke width. Includes the install command.
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, e.g. 'setting-2'. A plain word like 'gear' also works. | |
| size | No | Width and height in px | |
| color | No | Any CSS colour. Omit to inherit the text colour (currentColor). Glass styles ignore it. | |
| style | No | linear (default), outline, bold, bulk, twotone, broken, glass, glass-light, duotone | linear |
| title | No | Accessible name. Only for icons that carry meaning on their own | |
| format | No | svg, react, react-native, vue, svelte, js (vanilla) or cdn | svg |
| strokeWidth | No | Line styles only (linear, twotone, broken, duotone). Default 1.5 |