Manage Drive Files
manage_drive_filesManage Google Drive files by moving, copying, renaming, or deleting. Specify file IDs and target folders for precise organization.
Instructions
Unified tool for Google Drive file management: move, copy, rename, or delete files
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file_ids | No | List of file IDs (for move/copy/delete) or single file ID as list (for rename). Required for all operations. | |
| new_name | No | [RENAME] New name for the file. Required for rename. | |
| operation | Yes | Operation to perform: 'move', 'copy', 'rename', or 'delete' | |
| permanent | No | [DELETE] If True, permanently deletes files. If False, moves to trash (can be restored) | |
| name_prefix | No | [COPY] Prefix to add to copied file names (e.g., 'Copy of ') | Copy of |
| target_folder_id | No | [MOVE/COPY] Target folder ID (use 'root' for root folder). Required for move. | |
| user_google_email | No | Use 'me' or 'myself' for auto-resolution to authenticated user, or provide specific email address. If None, uses current authenticated user (auto-injected by middleware). | |
| remove_from_all_parents | No | [MOVE] If True, removes file from ALL current parent folders. If False, only removes from immediate parent |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |