---
title: "Workflow: Get Magnet Link"
description: "Workflow: Get Magnet Link — reference document from Claude Code knowledge pack."
type: skill
canonical_url: https://claudary.paisolsolutions.com/skills/get-magnet
source: "Claudary"
difficulty: intermediate
author: "Claude Code Knowledge Pack"
date: 2026-07-10T11:24:48.779Z
license: CC-BY-4.0
attribution: "Workflow: Get Magnet Link — Claudary (https://claudary.paisolsolutions.com/skills/get-magnet)"
---

# Workflow: Get Magnet Link
Workflow: Get Magnet Link — reference document from Claude Code knowledge pack.

## Overview

# Workflow: Get Magnet Link

<process>

**Step 1: Choose the fastest path**

- **By search query** (1 API call): `tpb grab "<query>" --cat <cat> --prefer "1080p,vip"`
- **By torrent ID** (1 API call): `tpb magnet <id>`
- **Open directly** (1 API call + launches client): `tpb open "<query>"` or `tpb open <id>`

The `grab` command builds the magnet from search results — no second API call needed. This avoids rate limiting.

**Step 2: Safety check (recommended for software/unknown uploaders)**

```bash
npx tsx <skill-dir>/scripts/tpb.ts files <torrent-id>
```

Red flags:
- `.exe` files in non-software torrents
- File count or total size doesn't match expected content
- Single `.rar` file with misleading name
- Very small files claiming to be large media

**Step 3: Present or open**

To present: show name, size, seeders, quality score, trust score, magnet link.

To open directly in the default torrent client:
```bash
npx tsx <skill-dir>/scripts/tpb.ts open <id-or-query> [--cat video] [--prefer "1080p"]
```

Works on macOS (`open`), Linux (`xdg-open`), and Windows (`start`).

</process>

<success_criteria>
- Magnet link obtained with minimal API calls (1 call preferred)
- User has enough info to decide (size, seeders, trust, quality)
- Safety red flags called out when present
- `open` command launches torrent client directly when requested
</success_criteria>

---

Source: [Claudary](https://claudary.paisolsolutions.com/skills/get-magnet) · https://claudary.paisolsolutions.com
