Productivity
Google Drive
Read files and export Google Workspace documents from configured Google Drive folders. Use approved source material in OrgSDK actions.
View 4 plugin functions ↓Use Google Drive in a project
- List supporting files in a permitted folder
- Export an approved Workspace document for use in a project action
Access and credentials
Reads and exports files under the configured folder IDs. When a shared drive ID is set, the plugin also verifies that the file belongs to that drive.
OAuth connections use your own provider application and client credentials. Configure that application in OrgSDK, review its permissions and connect the credential to your project.
List files in a permitted folder
In Studio, open your project’s Plugins page and enable Google Drive. Connect the account you want to use. Paste this example into an action in the same project.
// Replace the folder ID with the folder you want to review.
return await googleDrive.listFiles({
"folderId": "your-permitted-folder-id"
});Workflow examples and guides
Use with OrgSDK
OrgSDK gives external AI clients persistent projects and controlled execution. Plugins add optional tools to those projects. Each run uses pinned plugin versions, and project configuration determines which credentials they can use.
Set up OrgSDK locally ↗Capabilities
4 functions from this published version. Read calls retrieve or process information; write actions can change data in the connected service.
4 of 4 functions
googleDrive.listFiles
Read callList or search a single permitted folder's direct children, one bounded page at a time.
Parameters and return value
| Parameter | Type | Details |
|---|---|---|
folderId | string | — |
nameContainsOptional | string | — |
pageSizeOptional | number | — |
pageTokenOptional | string | — |
Returns Promise<{ files: Record<string, unknown>[]; nextPageToken: string | null; incompleteSearch: boolean }>
googleDrive.getFile
Read callRead selected file metadata after verifying folder ancestry.
Parameters and return value
| Parameter | Type | Details |
|---|---|---|
fileId | string | — |
Returns Promise<Record<string, unknown>>
googleDrive.readFile
Read callRead up to 5000000 bytes of a permitted binary file as text or base64.
Parameters and return value
| Parameter | Type | Details |
|---|---|---|
fileId | string | — |
Returns Promise<{ fileId: string; mimeType: string; byteLength: number; text?: string; base64?: string }>
googleDrive.exportFile
Read callExport a permitted Workspace document to a supported text or binary format, up to 5000000 bytes.
Parameters and return value
| Parameter | Type | Details |
|---|---|---|
fileId | string | — |
mimeType | "text/plain" | "text/csv" | "application/pdf" | "application/vnd.openxmlformats-officedocument.wordprocessingml.document" | "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet" | "application/vnd.openxmlformats-officedocument.presentationml.presentation" | — |
Returns Promise<{ fileId: string; mimeType: string; byteLength: number; text?: string; base64?: string }>
