i_download_svg
Download an icon's SVG text using an ID from a recent search, with optional color and size overrides. Use it to grab ready-to-use SVG markup for iconfont.cn icons.
Instructions
Download an icon as SVG text from iconfont.cn. The icon MUST have been returned by a recent search call (iconfont no longer has a per-icon detail endpoint, so the SVG is taken from the search cache). Pass an ID returned by search. Optional color overrides fills. Optional size overrides width/height.
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": "i_download_svg"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Icon ID returned by search | |
| size | No | Output size in px, e.g. 32. Overrides both width and height. Default: original size | |
| color | No | Fill color, e.g. "#333333" or "red". Default: original colors |