Get icon code
get_iconGet ready-to-paste code for one icon: install command, import, JSX/Vue/Svelte usage, or raw SVG. Unknown names return the closest matches instead of a guess.
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 |
|---|---|---|---|
| rtl | No | Set true for right-to-left layouts (Arabic, Hebrew). Directional icons such as arrows and chevrons are mirrored; others are unchanged. | |
| name | Yes | Icon name from search_icons, e.g. "trash" or "chevron-left". | |
| size | No | Rendered size in px. Default 24. Stroke weight adapts automatically (16px → 2.25, 20px → 1.8, 24px → 1.5). | |
| corner | No | Corner shape. Default rounded. | |
| format | No | Output format. Default react. | |
| variant | No | Visual style. Default stroke. | |
| strokeWidth | No | Override the stroke weight on the 24px grid. Usually leave unset. |