Download multiple assets
download_multiple_assetsUse this when several icons are needed as files, with every hash from search_assets, in one call. Not for a single icon (download_asset). colors takes HEX codes or CSS named colors, not currentColor. Next: when building a project, fetch downloadUrl, unzip it and save the files there. Never link downloadUrl from project files: it expires. Export multiple icons (up to 50) as PNG or SVG, bundled into one .zip. Returns JSON with a single short-lived downloadUrl, expiresAt, expiresInSeconds, mimeType ("application/zip"), fileName, and the iconHashes it contains. All icons share the same render options. Give the user downloadUrl as a clickable link labelled with fileName, and tell them it expires in 2 hours; do not report a failure because you cannot fetch it yourself. Clients that can fetch files may GET downloadUrl directly (no API key needed) and unzip it. SVG-only params: responsive, strokeToFill.
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": {
"format": "<format>",
"iconHashes": "<iconHashes>",
"size": "<size>"
},
"name": "download_multiple_assets"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| size | Yes | Image size in pixels (square). | |
| colors | No | Array of HEX codes or CSS named colors. | |
| format | Yes | Export format: "png" or "svg". | |
| iconHashes | Yes | Icon IDs (hashes) from `search_assets` results, one per array element (max 50). | |
| responsive | No | SVG only. Scales with container (viewBox, no fixed size). | |
| strokeWidth | No | Thickness of vector paths. | |
| strokeToFill | No | SVG only. Convert strokes to fills (strokeWidth ignored). | |
| backgroundColor | No | Background color (default: transparent). | #ffffff00 |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| fileName | Yes | ||
| mimeType | Yes | ||
| expiresAt | Yes | ||
| iconHashes | Yes | ||
| downloadUrl | Yes | ||
| expiresInSeconds | Yes |