Rename / update file metadata
update_file_metadataRename a Google Drive file or update its description and starred flag without changing content. Specify only the fields to change.
Instructions
Renames a file and/or updates its description and starred flag — metadata only, the content is untouched (that is upload_file with file_id). Only the provided fields change; at least one is required. Works on folders too (folders are files). Returns id, name, description, starred and the new modifiedTime. Moving lives in move_file, trashing in trash_file.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | New file name (the extension is part of the name — keep it unless you mean to change it). | |
| file_id | Yes | The file id — the long id from the Drive URL (drive.google.com/file/d/<fileId> or docs.google.com/.../d/<fileId>/edit) or from search_files/get_file output. Folders and shared-drive items are files too. | |
| starred | No | Star or unstar the file. | |
| description | No | New description (shown in the Drive details pane; searchable via full text). |