# Iconify icon as SVG

Get one open source icon as SVG markup from the Iconify API, by set prefix and icon name (from iconify/search-icons, e.g. 'mdi' and 'rocket'), optionally. Needs prefix and name.

Get one open source icon as SVG markup from the Iconify API, by set prefix and icon name (from iconify/search-icons, e.g. 'mdi' and 'rocket'), optionally recoloured, resized, rotated or flipped. Returns the SVG as text, ready to inline in HTML or save as a file; returns 404 when the icon does not exist. Check the set's licence in the search result.

- Tool ID: `iconify/icon-svg`
- Provider: [Iconify](/providers/iconify.md)
- Capability: [Knowledge & research](/tools/knowledge.md)
- Price: no charge per call
- Authentication: an authorised Agentik workspace is required for execution, including zero-price tools.

## Pricing contract

No charge per call. A workspace is still needed so your agent can call it.


```json
{
  "model": "per_call",
  "amountUsd": 0
}
```

## Complete input schema


```json
{
  "type": "object",
  "properties": {
    "prefix": {
      "type": "string",
      "pattern": "^[a-z0-9]+(-[a-z0-9]+)*$",
      "maxLength": 40,
      "description": "Icon set prefix, e.g. 'mdi'"
    },
    "name": {
      "type": "string",
      "pattern": "^[a-z0-9]+(-[a-z0-9]+)*$",
      "maxLength": 100,
      "description": "Icon name, e.g. 'rocket-launch'"
    },
    "color": {
      "type": "string",
      "pattern": "^(#[0-9a-fA-F]{3}|#[0-9a-fA-F]{6}|[a-z]{3,20})$",
      "description": "Colour for monotone icons, e.g. '#1f6feb'"
    },
    "height": {
      "type": "integer",
      "minimum": 8,
      "maximum": 2048,
      "description": "Height in pixels (width follows), e.g. 48"
    },
    "rotate": {
      "type": "string",
      "enum": [
        "90deg",
        "180deg",
        "270deg"
      ],
      "description": "Rotation, e.g. '90deg'"
    },
    "flip": {
      "type": "string",
      "enum": [
        "horizontal",
        "vertical",
        "horizontal,vertical"
      ],
      "description": "Flip, e.g. 'horizontal'"
    }
  },
  "required": [
    "prefix",
    "name"
  ],
  "additionalProperties": false
}
```

## Published example

This is the provider tool’s published example. Replace example values with the user’s requested inputs, respecting the schema; do not execute an example merely to test a connection.


```json
{
  "tool_id": "iconify/icon-svg",
  "input": {
    "prefix": "mdi",
    "name": "rocket-launch",
    "height": 48
  }
}
```

## Execute and retrieve

Inspect again before execution, explain the price and obtain the required authority. Use MCP run_tool or POST /v1/run with this tool ID, valid input and an idempotency key. Save the returned run ID and follow the actual state. If Agentik answers that the tool is temporarily unavailable, do not retry it blindly; use discovery to propose an alternative.

A partial or uncertain result can still have consumed provider resources. Consult [billing](/docs/billing.md), [idempotency](/docs/idempotency.md) and [asynchronous results](/docs/async.md).

Licence: Iconify public API; each icon set keeps its own open source licence.

[Provider documentation](https://iconify.design/docs/api/svg.html)

[REST inspection](https://api.agentik.cc/v1/tools/iconify/icon-svg) · [OpenAPI](/openapi.json) · [Connection guide](/connect.md)

---

[HTML page](/providers/iconify/icon-svg) · [Agent index](/llms.txt)
