You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The Arcade Google Drive toolkit provides a pre-built set of tools for interacting with Google Drive. These tools make it easy to build agents and AI apps that can:
18
+
The GoogleDrive toolkit provides a set of tools for interacting with Google Drive, enabling users to efficiently manage and access their files. With this toolkit, users can:
22
19
23
-
- Search Google documents in the user's Google Drive
24
-
- Search and retrieve the contents of Google documents in the user's Google Drive
20
+
- Retrieve the file and folder structure of their Google Drive.
21
+
- Generate a Google File Picker URL for user-driven file selection and authorization, allowing secure access to files.
22
+
- Search for specific files within Google Drive.
25
23
26
24
## Available Tools
27
25
28
-
These tools are currently available in the Arcade Google Drive toolkit.
29
-
30
26
<TableOfContents
31
27
headers={["Tool Name", "Description"]}
32
-
data={[
33
-
["GoogleDrive.GetFileTreeStructure", "Get the file/folder tree structure of the user's Google Drive."],
34
-
["GoogleDrive.GenerateGoogleFilePickerUrl", "Generate a Google File Picker URL for user-driven file selection and authorization"],
35
-
]}
28
+
data={
29
+
[
30
+
["GoogleDrive.GetFileTreeStructure", "Get the file/folder tree structure of the user's Google Drive."],
31
+
["GoogleDrive.GenerateGoogleFilePickerUrl", "Generate a Google File Picker URL for user-driven file selection and authorization."],
32
+
["GoogleDrive.SearchFiles", "Search for files in Google Drive"],
33
+
]
34
+
}
36
35
/>
37
36
38
37
<Tip>
39
38
If you need to perform an action that's not listed here, you can [get in touch
40
39
with us](mailto:[email protected]) to request a new tool, or [create your
41
-
own tools](/home/build-tools/create-a-toolkit) with the [Google auth
Get the file/folder tree structure of the user's Google Drive.
63
59
64
60
**Parameters**
65
61
66
-
-**`include_shared_drives`**_(bool, optional)_ Whether to include shared drives in the file tree structure. Defaults to False.
67
-
-**`restrict_to_shared_drive_id`**_(str, optional)_ If provided, only include files from this shared drive in the file tree structure. Defaults to None, which will include files and folders from all drives.
68
-
-**`include_organization_domain_documents`**_(bool, optional)_ Whether to include documents from the organization's domain. This is applicable to admin users who have permissions to view organization-wide documents in a Google Workspace account. Defaults to False.
69
-
-**`order_by`**_(enum ([OrderBy](#orderby)), optional)_ Sort order. Defaults to listing the most recently modified documents first.
70
-
-**`limit`**_(int, optional)_ The number of files and folders to list. Defaults to None, which will list all files and folders.
62
+
-**include_shared_drives** (`boolean`, optional) Whether to include shared drives in the file tree structure. Defaults to False.
63
+
-**restrict_to_shared_drive_id** (`string`, optional) If provided, only include files from this shared drive in the file tree structure. Defaults to None, which will include files and folders from all drives.
64
+
-**include_organization_domain_documents** (`boolean`, optional) Whether to include documents from the organization's domain. This is applicable to admin users who have permissions to view organization-wide documents in a Google Workspace account. Defaults to False.
65
+
-**order_by** (`Enum`[OrderBy](/toolkits/productivity/google_drive/reference#OrderBy), optional) Sort order. Defaults to listing the most recently modified documents first
66
+
-**limit** (`integer`, optional) The number of files and folders to list. Defaults to None, which will list all files and folders.
67
+
71
68
72
69
## GoogleDrive.GenerateGoogleFilePickerUrl
73
70
@@ -77,63 +74,52 @@ Get the file/folder tree structure of the user's Google Drive.
With the hosted Arcade Engine, there's nothing to configure. Your users will see `Arcade` as the name of the application that's requesting permission.
105
+
Search for files in Google Drive
105
106
106
-
With a self-hosted installation of Arcade, you need to [configure the Google auth provider](/home/auth-providers/google#configuring-google-auth) with your own Google app credentials.
107
+
**Parameters**
108
+
109
+
-**query** (`string`, required) The search query to use to find files in Google DriveThis can include document titles or body content.
110
+
-**include_shared_drives** (`boolean`, optional) Whether to include shared drives in the search. Defaults to False.
111
+
-**restrict_to_shared_drive_id** (`string`, optional) If provided, only search files from this shared drive. Defaults to None, which will search files from all drives.
112
+
-**include_organization_domain_documents** (`boolean`, optional) Whether to include documents from the organization's domain. This is applicable to admin users who have permissions to view organization-wide documents in a Google Workspace account. Defaults to False.
113
+
-**order_by** (`Enum`[OrderBy](/toolkits/productivity/google_drive/reference#OrderBy), optional) Sort order for search results. Defaults to listing the most recently modified documents first
114
+
-**limit** (`integer`, optional) The maximum number of search results to return. Defaults to 50.
115
+
-**file_types** (`Enum`[GoogleDriveFileType](/toolkits/productivity/google_drive/reference#GoogleDriveFileType), optional) Filter by specific file types. Defaults to None, which includes all file types.
107
116
108
-
---
109
117
110
-
## Reference
111
118
112
-
## OrderBy
113
119
114
-
Sort keys for ordering files in Google Drive. Each key has both ascending and descending options.
120
+
## Auth
115
121
116
-
-**`CREATED_TIME`**: When the file was created (ascending).
117
-
-**`CREATED_TIME_DESC`**: When the file was created (descending).
118
-
-**`FOLDER`**: The folder ID, sorted using alphabetical ordering (ascending).
119
-
-**`FOLDER_DESC`**: The folder ID, sorted using alphabetical ordering (descending).
120
-
-**`MODIFIED_BY_ME_TIME`**: The last time the file was modified by the user (ascending).
121
-
-**`MODIFIED_BY_ME_TIME_DESC`**: The last time the file was modified by the user (descending).
122
-
-**`MODIFIED_TIME`**: The last time the file was modified by anyone (ascending).
123
-
-**`MODIFIED_TIME_DESC`**: The last time the file was modified by anyone (descending).
124
-
-**`NAME`**: The name of the file, sorted using alphabetical ordering (ascending).
125
-
-**`NAME_DESC`**: The name of the file, sorted using alphabetical ordering (descending).
126
-
-**`NAME_NATURAL`**: The name of the file, sorted using natural sort ordering (ascending).
127
-
-**`NAME_NATURAL_DESC`**: The name of the file, sorted using natural sort ordering (descending).
128
-
-**`QUOTA_BYTES_USED`**: The number of storage quota bytes used by the file (ascending).
129
-
-**`QUOTA_BYTES_USED_DESC`**: The number of storage quota bytes used by the file (descending).
130
-
-**`RECENCY`**: The most recent timestamp from the file's date-time fields (ascending).
131
-
-**`RECENCY_DESC`**: The most recent timestamp from the file's date-time fields (descending).
132
-
-**`SHARED_WITH_ME_TIME`**: When the file was shared with the user, if applicable (ascending).
133
-
-**`SHARED_WITH_ME_TIME_DESC`**: When the file was shared with the user, if applicable (descending).
134
-
-**`STARRED`**: Whether the user has starred the file (ascending).
135
-
-**`STARRED_DESC`**: Whether the user has starred the file (descending).
136
-
-**`VIEWED_BY_ME_TIME`**: The last time the file was viewed by the user (ascending).
137
-
-**`VIEWED_BY_ME_TIME_DESC`**: The last time the file was viewed by the user (descending).
122
+
The Arcade GoogleDrive toolkit uses the [Google auth provider](/home/auth-providers/google) to connect to users' GoogleDrive accounts. Please refer to the [Google auth provider](/home/auth-providers/google) documentation to learn how to configure auth.
0 commit comments