Rename / move / trash a Drive file
update_drive_fileIdempotent
Update a Google Drive file by renaming it, moving it to a different folder, or trashing/untrashing it. Pass the file ID from list_drive_files.
Instructions
Update a Drive file: rename (name), move it into a folder (moveToFolderId, optionally removeFromFolderId to move OUT of the old one), or trash / untrash it (trash:true|false). Pass fileId (from list_drive_files). To delete permanently, use delete_drive_file.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | new name | |
| trash | No | true → move to Trash; false → restore from Trash | |
| fileId | Yes | the Drive file id | |
| moveToFolderId | No | folder id to move the file into (from create_drive_folder / list_drive_files) | |
| removeFromFolderId | No | the old parent folder id to remove (when moving) |
Output Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | No | ||
| name | No | ||
| trashed | No |