qb_set_share
Set per-torrent ratio and seeding-time limits to control when they stop or switch to super-seeding. Update share rules for specific torrents.
Instructions
Set ratio and/or seeding-time limits for specific torrents.
Args: instance: instance key from .instances.json. hashes: torrent hashes to update. ratio: maximum ratio; -1 means unlimited, -2 means use the global value. seeding_time: maximum seeding time in MINUTES (qBittorrent's unit); -1 unlimited, -2 use global (default). inactive_seeding_time: maximum inactive seeding time in MINUTES; -1 unlimited, -2 use global (default). action: what to do once a limit is reached - "stop" (default) or "enable_super_seeding". Removal is deliberately not offered here; use qb_remove for anything destructive. mode: how the limits combine - "default" (inherit), "any" (stop when either limit is reached) or "all" (both). Only qBittorrent 5.3+ honours it; older versions ignore the field.
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": {
"instance": "<instance>",
"hashes": "<hashes>"
},
"name": "qb_set_share"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | No | default | |
| ratio | No | ||
| action | No | stop | |
| hashes | Yes | ||
| instance | Yes | ||
| seeding_time | No | ||
| inactive_seeding_time | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |