update_drive_file
Update a Google Drive file's name, description, folder parents, trash, star, and sharing flags without uploading new content.
Instructions
Update a Drive file's metadata, folder parents, and flags.
Side effects: mutates the file (rename, move via add/remove_parents, trash/untrash, star). Does NOT upload new content — for content use a native-app tool or create_drive_file. trashed=True is reversible with trashed=False until the file is permanently deleted. Requires the drive.file OAuth scope.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| user_google_email | Yes | The user's Google email address (authenticated account). | |
| file_id | Yes | Drive file ID to update. | |
| name | No | New display name. | |
| description | No | New description text. | |
| mime_type | No | New MIME type (changing this rarely works without also uploading matching content). | |
| add_parents | No | Comma-separated folder IDs to add the file into (effectively moves when combined with remove_parents). | |
| remove_parents | No | Comma-separated folder IDs to detach from. | |
| starred | No | True to star, False to unstar. | |
| trashed | No | True moves to Trash (soft-delete), False restores. | |
| writers_can_share | No | Whether editors may re-share the file. | |
| copy_requires_writer_permission | No | When True, copies require writer access (reader copy/export blocked). | |
| properties | No | Dict of user-visible custom key-value pairs attached to the file. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |