drive_rename_file
Rename a Drive file or folder in place while keeping its ID and location unchanged, so existing links continue to work. Get notified if the new name conflicts with another item.
Instructions
Rename a Drive file or folder in place.
The id and location are unchanged, so links keep working. Drive allows two files with the same name in one folder, so this does not stop you creating a duplicate name — but it reports when the new name is already in use alongside the target, since that ambiguity is what makes later path-based tool calls fail.
file is a Drive file id or a path from My Drive root. new_name
is the new name, without any path separators. Returns the old and new
name and path.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file | Yes | ||
| new_name | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||