Download Iconfont Icon SVG
iconfont_download_iconDownload SVG content for an icon from Iconfont using its icon ID. Optionally save the SVG to a file or provide a project ID for private icons.
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. For icons in private projects, you must provide the project_id parameter.
Args:
icon_id (string, required): The icon ID to download (from search results)
project_id (string, optional): Project ID for private project icons (from iconfont_list_projects)
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: "Download from a private project" -> icon_id, project_id
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) | |
| project_id | No | Project ID (required for icons in private projects; can be obtained from iconfont_list_projects) | |
| 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 |