start_torrent
Resume downloading or uploading a torrent by providing its ID to continue paused transfers.
Instructions
Start (resume) a torrent.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| torrent_id | Yes |
Implementation Reference
- rqbit_client/mcp_server.py:78-87 (handler)MCP tool handler for 'start_torrent'. This decorated function handles the tool invocation, logs the action, calls the underlying RqbitClient.start_torrent, and formats the response.@mcp.tool() async def start_torrent(torrent_id: str) -> str: """Start (resume) a torrent.""" logger.info(f"Starting torrent: {torrent_id}") result = await rqbit_client.start_torrent(torrent_id) if isinstance(result, str): error = f"Error starting torrent {torrent_id}: {result}" logger.error(error) return error return "Successfully started torrent " + torrent_id
- Underlying implementation in RqbitClient wrapper. Performs a POST request to the rqbit server's /torrents/{id_or_infohash}/start endpoint to resume the torrent.async def start_torrent(self, id_or_infohash: str) -> None | str: """Start (resume) a torrent.""" return await self._safe_request("POST", f"/torrents/{id_or_infohash}/start")