start_torrent
Resume or initiate a torrent download by specifying the torrent ID using this MCP server tool for the rqbit API.
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'. Decorated with @mcp.tool() for automatic registration and schema inference from signature. Calls the underlying RqbitClient method.@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 client method implementation that performs HTTP POST to rqbit API endpoint /torrents/{id}/start to start 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")