Get icon code
get_iconGet one icon as an SVG string or as ready-to-paste JSX, Vue or Svelte markup. Free Stroke Rounded icons need no key; premium styles need a Glibiq Pro API key.
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 exactly as returned by search_icons, e.g. 'shopping-cart' or 'home-solid'. | |
| size | No | Width and height in pixels. | |
| color | No | Hex colour such as #1F8BFF. Default is currentColor (inherits the text colour). | |
| style | No | Optional: return the same design in another style key (see list_styles). | |
| format | No | Output format: raw SVG or markup for React (jsx), Vue or Svelte. | svg |
| stroke | No | Stroke width for outline styles (default 1.5). |