set_file_priority
Set the download priority for a specific torrent file using its hash and file ID, so you can skip, normalize, or prioritize individual files.
Instructions
Set file priority
Args: hash: Torrent hash value id: correspond to file position inside the array returned by torrent contents API, e.g. id=0 for first file, id=1 for second file, etc. priority: Value Description 0 Do not download 1 Normal priority 6 High priority 7 Maximal priority
Returns: Result message of setting file priority HTTP Status Code Scenario 400 Priority is invalid 400 At least one file id is not a valid integer 404 Torrent hash was not found 409 Torrent metadata hasn't downloaded yet 409 At least one file id was not found 200 All other scenarios
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": {
"hash": "<hash>",
"id": "<id>",
"priority": "<priority>"
},
"name": "set_file_priority"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | ||
| hash | Yes | ||
| priority | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |