drive_rename
Rename a Google Drive file or folder by specifying its name or index and the new name, including extension when needed.
Instructions
Rename a file or folder.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | Exact item name in the current location (or in path). | |
| path | No | Folder holding the item ("/A/B" from My Drive, "A/B" relative); default: current. | |
| index | No | Index from the last drive.list / drive.search. | |
| new_name | Yes | The new name (give the extension too for uploaded files, e.g. "b.txt"). | |
| occurrence | No | Which item when several share the name (0 = first). |