drive_rename
Rename a file or folder on Proton Drive without changing its parent folder. Use for in-place renames to avoid unnecessary file moves.
Instructions
Rename a file or folder in place on Proton Drive, without moving it to a different parent folder. Requires authentication. Equivalent to calling drive_move with the same parent and a new filename, but cheaper — one CLI call instead of drive_move's internal composition. Do not use to relocate to a different folder — use drive_move for that (or when unsure which applies).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Absolute remote path of the file or folder to rename (must start with '/'). | |
| newName | Yes | New filename (not a path — just the name, e.g. 'report-v2.pdf'). |