rename
Renames a file or folder in place; if the new name is already taken in that folder, the change is refused and nothing is replaced.
Instructions
Rename a file or folder in place. If the new name is already taken in that folder, DSM refuses and nothing is replaced. To move something to another folder, use move_files. A whole shared folder (/video), recycle bin or user's home folder (/homes/<user>) is refused.
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": {
"path": "<path>",
"new_name": "<new_name>"
},
"name": "rename"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | The file or folder to rename (`/video/TV Shows/Severence`). | |
| new_name | Yes | The new name only, not a path, `.` or `..` (`Severance`); no whitespace at its ends, no invisible character where Unicode doesn't use one, no control or direction-changing characters, and not `#recycle` at a shared or home folder's top. |