iconfont_download_icon
Download SVG icons from Iconfont by specifying an icon ID. Retrieve SVG content and optionally save files to a directory with custom filenames.
Instructions
Download SVG data for a specific icon from Iconfont.
This tool retrieves the SVG content for an icon and optionally saves it to a file. The icon_id can be obtained from the search results.
Args:
icon_id (string, required): The icon ID to download (from search results)
output_path (string, optional): Directory path to save the SVG file
filename (string, optional): Filename for the downloaded SVG (without extension)
Returns: For JSON format: { icon_id: string, name: string, svg: string, saved_to: string | null } For markdown: Confirmation message with file path if saved
Examples:
Use when: "Download the home icon" -> icon_id from search results
Use when: "Save to specific folder" -> output_path="./src/icons"
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| icon_id | Yes | The icon ID to download (from search results) | |
| output_path | No | Directory path to save the SVG file (defaults to current directory) | |
| filename | No | Filename for the downloaded SVG (without extension) | |
| response_format | No | Output format: 'markdown' for human-readable or 'json' for machine-readable | markdown |