create_download
Create download tasks on your Synology NAS from URIs (HTTP, FTP, magnet) or local .torrent/.nzb files, specifying an existing destination folder to queue each task.
Instructions
Create one or more download tasks, from URIs or from a local .torrent / .nzb file. The NAS fetches each URI, so one on the NAS or its local network (magnet trackers and wrapped links too) is refused unless the config sets allow_local_addresses. destination must be an existing folder, share-relative (DS doesn't create folders; make a new one first with File Station's create_folder when File Station write is enabled, or ask the user to create it in DSM). Omit it to use your default destination (a non-manager who has none must set it first with set_download_config, because DS won't start their tasks until then). Returns the new task IDs when DSM provides them (not for URLs with username / password); long magnet links and URI lists are supported.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "create_download"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| uri | No | One or more source URIs, comma-separated: HTTP, HTTPS, FTP, magnet and others. Give each its scheme: a comma starts another URI only when a scheme (`https://`, `magnet:`) follows it, so commas inside a URI are kept. Pass this or `torrent_file_path`, not both. | |
| password | No | Password for a protected `uri`; not for torrent files. | |
| username | No | User name for a protected `uri`; not for torrent files. | |
| destination | No | Existing folder to download into, share-relative (`video/Torrents`). Omit it to use your default destination. | |
| torrent_file_path | No | Path on this machine to a `.torrent` or `.nzb` file, inside one of the allowed local folders (/root/Downloads), or below it. Pass this or `uri`, not both. |