batch_rename
Rename multiple files and folders inside a torrent in one ordered batch, returning per-item results so a failed rename does not stop the remaining operations.
Instructions
Rename multiple files and folders inside a torrent in one batch
Args: hash: Torrent hash value renames: JSON array of rename operations, executed sequentially in the given order. Each item: {"old_path": "current/path", "new_path": "new/path", "type": "file" or "folder"} "type" is optional and defaults to "file". Note: renaming a folder changes the paths of everything inside it, so order the operations accordingly.
Returns: Summary with per-item results; a failed item does not stop the rest
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>",
"renames": "<renames>"
},
"name": "batch_rename"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| hash | Yes | ||
| renames | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |