|
1 | | -# GoogleDrive Reference |
| 1 | +# Google Drive Reference |
2 | 2 |
|
3 | | -Below is a reference of enumerations used by some tools in the GoogleDrive MCP Server: |
| 3 | +Below is a reference of enumerations used by some tools in the Google Drive MCP Server: |
4 | 4 |
|
5 | 5 | ## OrderBy |
6 | 6 |
|
7 | | -- **CREATED_TIME**: `createdTime` |
8 | | -- **CREATED_TIME_DESC**: `createdTime desc` |
9 | | -- **FOLDER**: `folder` |
10 | | -- **FOLDER_DESC**: `folder desc` |
11 | | -- **MODIFIED_BY_ME_TIME**: `modifiedByMeTime` |
12 | | -- **MODIFIED_BY_ME_TIME_DESC**: `modifiedByMeTime desc` |
13 | | -- **MODIFIED_TIME**: `modifiedTime` |
14 | | -- **MODIFIED_TIME_DESC**: `modifiedTime desc` |
15 | | -- **NAME**: `name` |
16 | | -- **NAME_DESC**: `name desc` |
17 | | -- **NAME_NATURAL**: `name_natural` |
18 | | -- **NAME_NATURAL_DESC**: `name_natural desc` |
19 | | -- **QUOTA_BYTES_USED**: `quotaBytesUsed` |
20 | | -- **QUOTA_BYTES_USED_DESC**: `quotaBytesUsed desc` |
21 | | -- **RECENCY**: `recency` |
22 | | -- **RECENCY_DESC**: `recency desc` |
23 | | -- **SHARED_WITH_ME_TIME**: `sharedWithMeTime` |
24 | | -- **SHARED_WITH_ME_TIME_DESC**: `sharedWithMeTime desc` |
25 | | -- **STARRED**: `starred` |
26 | | -- **STARRED_DESC**: `starred desc` |
27 | | -- **VIEWED_BY_ME_TIME**: `viewedByMeTime` |
28 | | -- **VIEWED_BY_ME_TIME_DESC**: `viewedByMeTime desc` |
| 7 | +Sort order options for listing and searching files. |
| 8 | + |
| 9 | +- **CREATED_TIME**: `createdTime` - When the file was created (ascending) |
| 10 | +- **CREATED_TIME_DESC**: `createdTime desc` - When the file was created (descending) |
| 11 | +- **FOLDER**: `folder` - The folder ID, sorted using alphabetical ordering (ascending) |
| 12 | +- **FOLDER_DESC**: `folder desc` - The folder ID, sorted using alphabetical ordering (descending) |
| 13 | +- **MODIFIED_BY_ME_TIME**: `modifiedByMeTime` - The last time the file was modified by the user (ascending) |
| 14 | +- **MODIFIED_BY_ME_TIME_DESC**: `modifiedByMeTime desc` - The last time the file was modified by the user (descending) |
| 15 | +- **MODIFIED_TIME**: `modifiedTime` - The last time the file was modified by anyone (ascending) |
| 16 | +- **MODIFIED_TIME_DESC**: `modifiedTime desc` - The last time the file was modified by anyone (descending) |
| 17 | +- **NAME**: `name` - The name of the file, sorted alphabetically (ascending) |
| 18 | +- **NAME_DESC**: `name desc` - The name of the file, sorted alphabetically (descending) |
| 19 | +- **NAME_NATURAL**: `name_natural` - The name of the file, sorted using natural sort ordering (ascending) |
| 20 | +- **NAME_NATURAL_DESC**: `name_natural desc` - The name of the file, sorted using natural sort ordering (descending) |
| 21 | +- **QUOTA_BYTES_USED**: `quotaBytesUsed` - The number of storage quota bytes used by the file (ascending) |
| 22 | +- **QUOTA_BYTES_USED_DESC**: `quotaBytesUsed desc` - The number of storage quota bytes used by the file (descending) |
| 23 | +- **RECENCY**: `recency` - The most recent timestamp from the file's date-time fields (ascending) |
| 24 | +- **RECENCY_DESC**: `recency desc` - The most recent timestamp from the file's date-time fields (descending) |
| 25 | +- **SHARED_WITH_ME_TIME**: `sharedWithMeTime` - When the file was shared with the user (ascending) |
| 26 | +- **SHARED_WITH_ME_TIME_DESC**: `sharedWithMeTime desc` - When the file was shared with the user (descending) |
| 27 | +- **STARRED**: `starred` - Whether the user has starred the file (ascending) |
| 28 | +- **STARRED_DESC**: `starred desc` - Whether the user has starred the file (descending) |
| 29 | +- **VIEWED_BY_ME_TIME**: `viewedByMeTime` - The last time the file was viewed by the user (ascending) |
| 30 | +- **VIEWED_BY_ME_TIME_DESC**: `viewedByMeTime desc` - The last time the file was viewed by the user (descending) |
29 | 31 |
|
30 | 32 | ## GoogleDriveFileType |
31 | 33 |
|
32 | | -- **SPREADSHEET**: `spreadsheet` |
33 | | -- **SLIDES**: `slides` |
34 | | -- **DOCUMENT**: `document` |
35 | | -- **DRAWING**: `drawing` |
36 | | -- **FORM**: `form` |
37 | | -- **FOLDER**: `folder` |
38 | | -- **IMAGE**: `image` |
39 | | -- **VIDEO**: `video` |
40 | | -- **AUDIO**: `audio` |
41 | | -- **SCRIPT**: `script` |
42 | | -- **SITES**: `sites` |
43 | | -- **PDF**: `pdf` |
| 34 | +File type filters for searching files. |
| 35 | + |
| 36 | +- **SPREADSHEET**: `spreadsheet` - Google Sheets |
| 37 | +- **SLIDES**: `slides` - Google Slides presentations |
| 38 | +- **DOCUMENT**: `document` - Google Docs |
| 39 | +- **DRAWING**: `drawing` - Google Drawings |
| 40 | +- **FORM**: `form` - Google Forms |
| 41 | +- **FOLDER**: `folder` - Folders |
| 42 | +- **IMAGE**: `image` - Image files (JPEG, PNG, GIF, WebP) |
| 43 | +- **VIDEO**: `video` - Video files (MP4, MPEG, QuickTime, WebM) |
| 44 | +- **AUDIO**: `audio` - Audio files (MP3, M4A, WAV) |
| 45 | +- **SCRIPT**: `script` - Google Apps Script |
| 46 | +- **SITES**: `sites` - Google Sites |
| 47 | +- **PDF**: `pdf` - PDF documents |
| 48 | + |
| 49 | +## PermissionRole |
| 50 | + |
| 51 | +Permission roles for sharing Google Drive files and folders. |
| 52 | + |
| 53 | +- **READER**: `reader` - Can view and download |
| 54 | +- **COMMENTER**: `commenter` - Can view, download, and comment |
| 55 | +- **WRITER**: `writer` - Can view, download, comment, and edit |
| 56 | +- **OWNER**: `owner` - Full control (transfer ownership) |
| 57 | + |
| 58 | +## UploadMimeType |
| 59 | + |
| 60 | +Supported file types for uploading to Google Drive. This tool can only upload regular files - it cannot create Google Workspace files (Google Docs, Sheets, Slides). |
| 61 | + |
| 62 | +### Text-based files |
| 63 | + |
| 64 | +- **PLAIN_TEXT**: `text/plain` - .txt files |
| 65 | +- **CSV**: `text/csv` - .csv spreadsheet data |
| 66 | +- **JSON**: `application/json` - .json data files |
| 67 | +- **HTML**: `text/html` - .html web pages |
| 68 | +- **MARKDOWN**: `text/markdown` - .md documentation |
| 69 | + |
| 70 | +### Documents |
| 71 | + |
| 72 | +- **PDF**: `application/pdf` - .pdf documents |
44 | 73 |
|
| 74 | +### Images |
45 | 75 |
|
| 76 | +- **PNG**: `image/png` - .png images |
| 77 | +- **JPEG**: `image/jpeg` - .jpg/.jpeg images |
| 78 | +- **GIF**: `image/gif` - .gif images |
| 79 | +- **WEBP**: `image/webp` - .webp images |
| 80 | +- **SVG**: `image/svg+xml` - .svg vector graphics |
0 commit comments