download_add
Initiate a download from a URL, magnet link, or torrent address, and receive the new task ID.
Instructions
新建一个下载任务。支持 HTTP/HTTPS/FTP/磁力链接/BitTorrent。返回新任务 ID。
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | 要下载的 URL、磁力链接或 torrent 地址(必填)。 | |
| cookies | No | Cookie 字符串。 | |
| queueId | No | 命名队列 ID(空 = 默认队列)。 | |
| saveDir | No | 保存目录绝对路径(空 = 全局默认目录)。 | |
| checksum | No | 校验和,格式 algo=hexhash(空 = 跳过校验)。 | |
| fileName | No | 保存的文件名(空 = 从 URL/Content-Disposition 推断)。 | |
| proxyUrl | No | 单任务代理 URL(空 = 全局代理)。 | |
| referrer | No | Referer 头。 | |
| segments | No | 分段线程数(0 = 按文件大小自动决定)。 | |
| userAgent | No | User-Agent(空 = 全局 UA)。 |