Download archive
download_archiveDownload an album or selected assets as one zip of original files to a local path, streamed to disk for large albums, with existing files never overwritten.
Instructions
Download an album or a selection as one zip of the original files, written to a local path. Use get_download_info first when the size matters. The file is streamed to disk (safe for big albums) and an existing file is never overwritten. Side effect: writes a file on the machine running the server.
Args:
output_path: Where to write the zip (an existing file is refused).
album_id: Download the whole album.
asset_ids: Or download just these assets.
Returns: JSON with path, bytes written and how many assets went in, or an error.
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": {
"output_path": "<output_path>"
},
"name": "download_archive"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| album_id | No | ||
| asset_ids | No | ||
| output_path | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |