update_drive_file
Modify Google Drive file properties including name, description, folder location, permissions, and custom metadata to organize and manage documents.
Instructions
Updates metadata and properties of a Google Drive file.
Args: user_google_email (str): The user's Google email address. Required. file_id (str): The ID of the file to update. Required. name (Optional[str]): New name for the file. description (Optional[str]): New description for the file. mime_type (Optional[str]): New MIME type (note: changing type may require content upload). add_parents (Optional[str]): Comma-separated folder IDs to add as parents. remove_parents (Optional[str]): Comma-separated folder IDs to remove from parents. starred (Optional[bool]): Whether to star/unstar the file. trashed (Optional[bool]): Whether to move file to/from trash. writers_can_share (Optional[bool]): Whether editors can share the file. copy_requires_writer_permission (Optional[bool]): Whether copying requires writer permission. properties (Optional[dict]): Custom key-value properties for the file.
Returns: str: Confirmation message with details of the updates applied.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| user_google_email | Yes | ||
| file_id | Yes | ||
| name | No | ||
| description | No | ||
| mime_type | No | ||
| add_parents | No | ||
| remove_parents | No | ||
| starred | No | ||
| trashed | No | ||
| writers_can_share | No | ||
| copy_requires_writer_permission | No | ||
| properties | No |