rename_torrent_file
Rename a file inside a torrent by specifying its hash and the current and new relative paths. Use it to correct or reorganize torrent file names without changing the torrent's directory structure.
Instructions
Rename a file inside a torrent
Args: hash: Torrent hash value old_path: Current file path inside the torrent (relative to the torrent root, get it from the file list) new_path: New file path inside the torrent (relative to the torrent root, keep the same directory structure)
Returns: Result message of renaming the file
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>",
"old_path": "<old_path>",
"new_path": "<new_path>"
},
"name": "rename_torrent_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| hash | Yes | ||
| new_path | Yes | ||
| old_path | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |