Get YouTube download file
get_youtube_download_fileGet the file link for a comments download in one format. Bulk (playlist, channel, or custom-list) downloads give a ZIP of per-item files, without items that have no data, so it can be empty. Call it once get_youtube_download reports finished; before that it fails as not_ready, so wait and repeat the same call. After error or cancellation the link may hold partial results; a single download with no data answers not found. Transcripts and channel details return their own fileUrl instead. The link is public by ID, so share it only with the user.
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": "get_youtube_download_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Download ID returned by download_youtube_comments or list_youtube_downloads. | |
| format | No | File format: json for structured data, csv or xlsx for spreadsheets, html for a readable page, txt for plain text. | json |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Download ID. | |
| url | Yes | File link. Public by ID: anyone with it can download the file. | |
| format | Yes | Requested file format. | |
| status | Yes | created: queued. downloading: collecting comments. finished: done. error: stopped by a failure. canceled: stopped by the user. The last three are final unless the user restarts the download. | |
| message | No | Short instruction for using the link. | |
| itemsType | No | Bulk downloads only: which items were collected. | |
| contentType | Yes | Kind of source that was downloaded. | |
| availability | No | check_download_endpoint: the link itself reports whether a file exists; this call does not check. |