qbittorrent_torrents
Control qBittorrent downloads by listing, adding, pausing, resuming, deleting, rechecking, renaming, moving, and editing trackers, peers, files, and locations through operation-based calls.
Instructions
qbittorrent torrents operations on qBittorrent. Pass operation and an arguments dict matching that operation's parameters.
qbittorrent_torrent_contents(hash, indexes='') — Files of one torrent: index, name, size, progress, priority (0 skip, 1 normal, 6 high, 7 maximal), is_seed, piece_range, availability. Pass indexes (pipe-separated) to fetch only those files.
qbittorrent_torrent_piece_hashes(hash) — SHA1 hashes of all pieces of one torrent, in order.
qbittorrent_torrent_piece_states(hash) — Piece states of one torrent as ints: 0 not downloaded, 1 downloading, 2 downloaded.
qbittorrent_torrent_properties(hash) — Generic properties of one torrent: save_path, creation/completion dates, total uploaded/downloaded, seeding_time, share_ratio, speeds, peer counts, isPrivate, etc. 404 if the hash is not found.
qbittorrent_torrent_trackers(hash) — Trackers of one torrent: url, status (0 disabled, 1 not contacted yet, 2 working, 3 updating, 4 not working), tier, peer/seed/leech counts, msg.
qbittorrent_torrent_web_seeds(hash) — Web seeds of one torrent (array of {url}).
qbittorrent_torrents_add(urls='', torrent_b64='', save_path='', category='', tags='', skip_checking=None, paused=None, root_folder=None, rename='', up_limit=None, dl_limit=None, ratio_limit=None, seeding_time_limit=None, auto_tmm=None, sequential_download=None, first_last_piece_prio=None) — Add torrents. urls is one or more http(s)/magnet/bc:// links separated by newlines. Alternatively (or additionally) pass one raw .torrent file base64-encoded in torrent_b64. Optional: save_path, category, tags (comma-separated), skip_checking, paused, root_folder, rename, up_limit / dl_limit (bytes/s), ratio_limit, seeding_time_limit (minutes), auto_tmm, sequential_download, first_last_piece_prio.
qbittorrent_torrents_add_peers(hashes, peers) — Add peers to torrents. hashes is pipe-separated or "all"; peers is one or more
host:portvalues separated by a pipe.qbittorrent_torrents_add_trackers(hash, urls) — Add trackers to a torrent. urls is one or more tracker URLs separated by newlines.
qbittorrent_torrents_delete(hashes, delete_files=False) — Delete torrents. hashes is pipe-separated or "all". With delete_files=true the downloaded data is deleted from disk too -- this is irreversible.
qbittorrent_torrents_edit_tracker(hash, url, new_url) — Replace a tracker URL on a torrent with new_url.
qbittorrent_torrents_list(filter='', category='', tag='', sort='', reverse=None, limit=None, offset=None, hashes='') — List torrents matching the given filters. filter is one of all, downloading, seeding, completed, stopped, active, inactive, running, stalled, stalled_uploading, stalled_downloading, errored. category/tag filter by them (empty string = "without category/tag"). sort by any response field; reverse for descending order. limit/offset for paging; hashes (pipe-separated or "all") to select specific torrents.
qbittorrent_torrents_pause(hashes) — Pause (stop) torrents. hashes is pipe-separated or "all".
qbittorrent_torrents_reannounce(hashes) — Reannounce torrents to their trackers. hashes is pipe-separated or "all".
qbittorrent_torrents_recheck(hashes) — Force recheck of torrents. hashes is pipe-separated or "all".
qbittorrent_torrents_remove_trackers(hash, urls) — Remove trackers from a torrent. urls is one or more URLs separated by a pipe.
qbittorrent_torrents_rename_file(hash, old_path, new_path) — Rename a file inside a torrent (relative paths from the torrent root).
qbittorrent_torrents_rename_folder(hash, old_path, new_path) — Rename a folder inside a torrent (relative paths from the torrent root).
qbittorrent_torrents_resume(hashes) — Resume (start) torrents. hashes is pipe-separated or "all".
qbittorrent_torrents_set_auto_management(hashes, enable) — Enable/disable Automatic Torrent Management for torrents (hashes pipe-separated or "all").
qbittorrent_torrents_set_location(hashes, location) — Move torrents to a new download location on disk. hashes is pipe-separated or "all"; location is the destination directory.
qbittorrent_torrents_set_name(hash, name) — Rename a torrent (display name only, does not touch files on disk).
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": {
"operation": "<operation>"
},
"name": "qbittorrent_torrents"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| arguments | No | ||
| operation | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |