Sign Up
Loading...

Google Drive commands

Use these commands from an endpoint, server function or event. Choose Add Command → Connector → Google Drive, select the action, then choose an Account. Selecting an account reveals the remaining inputs. When the command returns a result, open OUTPUT and use Return as to name it for later commands.

All connector references · Connect an account · AI setup and shared results

Copy File

Copy a file into a chosen folder with a new name.

Inputs

InputTypeHow to use it
AccountAccountChoose a saved Google Drive connector from this organization. Create or reconnect it in Settings > Connectors. Do not enter an API key, password or email address here.
Filegoogle drive fileSelect the Drive file or supply its file ID from the sharing address. Use the ID, not the full address.
File NametextThe display name for the new item, such as Meeting notes. This does not choose a file format.
Foldergoogle drive folderOptional destination folder ID. If empty, the copy uses the source file's parent folder, or My Drive if no parent is returned.

Result

An object with fileId, name, mimeType and webViewLink. Optional fields can be absent when Google does not provide them.

Example

Account: choose your Google Drive connector. File: file-id; File Name: Invoice copy; Folder: destination-folder-id.

Errors and limits

Check source read and destination create permissions. Look for an already-created copy before retrying an uncertain result. Reconnect the matching app in Settings if the connection is unavailable. Check the resource IDs and required read or edit permissions. Wait after provider rate limiting. Use live data is required; isolated tests and live debugging cannot contact these services. Provider requests time out after 30 seconds. Google responses are limited to 16 MiB.

Create File From Text

Create a native Google document from plain text in Drive.

Inputs

InputTypeHow to use it
AccountAccountChoose a saved Google Drive connector from this organization. Create or reconnect it in Settings > Connectors. Do not enter an API key, password or email address here.
Foldergoogle drive folderSelect the destination Drive folder or supply its folder ID, not a sharing link. The account needs permission to add items there.
File NametextThe display name for the new item, such as Meeting notes. This does not choose a file format.
ContenttextPlain text for the new Google document, including any line breaks. This is not HTML, a PDF or a file download.

Result

An object with fileId, name, mimeType and webViewLink. Optional fields can be absent when Google does not provide them.

Example

Account: choose your Google Drive connector. Folder: folder-id; File Name: Welcome notes; Content: Welcome to our customer portal.

Errors and limits

A destination folder and content are required. This creates a Google document even if its name ends in .txt. Check for an existing file before retrying an uncertain result. Reconnect the matching app in Settings if the connection is unavailable. Check the resource IDs and required read or edit permissions. Wait after provider rate limiting. Use live data is required; isolated tests and live debugging cannot contact these services. Provider requests time out after 30 seconds. Google responses are limited to 16 MiB.

Create Folder

Create a folder inside an existing Drive folder.

Inputs

InputTypeHow to use it
AccountAccountChoose a saved Google Drive connector from this organization. Create or reconnect it in Settings > Connectors. Do not enter an API key, password or email address here.
Parent Foldergoogle drive folderSelect the parent Drive folder or supply its folder ID. The special ID root means the connected account's My Drive.
Folder NametextThe new folder's display name, such as Customer reports.

Result

An object with fileId, name, mimeType and webViewLink. Optional fields can be absent when Google does not provide them.

Example

Account: choose your Google Drive connector. Parent Folder: root; Folder Name: Customer reports.

Errors and limits

The parent must be writable. Check whether the folder already exists before retrying an uncertain result. Reconnect the matching app in Settings if the connection is unavailable. Check the resource IDs and required read or edit permissions. Wait after provider rate limiting. Use live data is required; isolated tests and live debugging cannot contact these services. Provider requests time out after 30 seconds. Google responses are limited to 16 MiB.

Create Shortcut

Create a Drive shortcut pointing to an existing file.

Inputs

InputTypeHow to use it
AccountAccountChoose a saved Google Drive connector from this organization. Create or reconnect it in Settings > Connectors. Do not enter an API key, password or email address here.
Filegoogle drive fileSelect the Drive file or supply its file ID from the sharing address. Use the ID, not the full address.
Shortcut NametextThe name of the new shortcut. The original file is unchanged.
Foldergoogle drive folderSelect the destination Drive folder or supply its folder ID, not a sharing link. The account needs permission to add items there.

Result

An object with fileId, name, mimeType and webViewLink. Optional fields can be absent when Google does not provide them.

Example

Account: choose your Google Drive connector. File: original-file-id; Shortcut Name: Price list; Folder: shortcut-folder-id.

Errors and limits

A shortcut does not grant access to its target. Check target access and whether the shortcut already exists before retrying. Reconnect the matching app in Settings if the connection is unavailable. Check the resource IDs and required read or edit permissions. Wait after provider rate limiting. Use live data is required; isolated tests and live debugging cannot contact these services. Provider requests time out after 30 seconds. Google responses are limited to 16 MiB.

Delete File

Permanently delete a Drive file rather than moving it to the bin.

Inputs

InputTypeHow to use it
AccountAccountChoose a saved Google Drive connector from this organization. Create or reconnect it in Settings > Connectors. Do not enter an API key, password or email address here.
Filegoogle drive fileSelect the Drive file or supply its file ID from the sharing address. Use the ID, not the full address.

Result

No value is returned on success. The file is deleted; no deleted-file details are returned.

Example

Account: choose your Google Drive connector. Use a disposable test file: File: test-file-id.

Errors and limits

This is permanent deletion. Confirm the ID and deletion permission. A missing-file error on retry can mean the first deletion succeeded. Reconnect the matching app in Settings if the connection is unavailable. Check the resource IDs and required read or edit permissions. Wait after provider rate limiting. Use live data is required; isolated tests and live debugging cannot contact these services. Provider requests time out after 30 seconds. Google responses are limited to 16 MiB.

Move File

Move a file into a destination folder.

Inputs

InputTypeHow to use it
AccountAccountChoose a saved Google Drive connector from this organization. Create or reconnect it in Settings > Connectors. Do not enter an API key, password or email address here.
Filegoogle drive fileSelect the Drive file or supply its file ID from the sharing address. Use the ID, not the full address.
Foldergoogle drive folderSelect the destination Drive folder or supply its folder ID, not a sharing link. The account needs permission to add items there.

Result

No value is returned on success. Its current parent folders are replaced by the destination. Its file ID stays the same.

Example

Account: choose your Google Drive connector. File: file-id; Folder: destination-folder-id.

Errors and limits

Check access in both locations and shared-drive move restrictions. Inspect the current location before retrying an uncertain result. Reconnect the matching app in Settings if the connection is unavailable. Check the resource IDs and required read or edit permissions. Wait after provider rate limiting. Use live data is required; isolated tests and live debugging cannot contact these services. Provider requests time out after 30 seconds. Google responses are limited to 16 MiB.

Rename File

Change a Drive file's display name.

Inputs

InputTypeHow to use it
AccountAccountChoose a saved Google Drive connector from this organization. Create or reconnect it in Settings > Connectors. Do not enter an API key, password or email address here.
Filegoogle drive fileSelect the Drive file or supply its file ID from the sharing address. Use the ID, not the full address.
New File NametextThe new display name. The file keeps the same ID and content.

Result

An object with fileId, name, mimeType and webViewLink. Optional fields can be absent when Google does not provide them.

Example

Account: choose your Google Drive connector. File: file-id; New File Name: Approved invoice.

Errors and limits

Reconnect the matching app in Settings if the connection is unavailable. Check the resource IDs and required read or edit permissions. Wait after provider rate limiting. Use live data is required; isolated tests and live debugging cannot contact these services. Provider requests time out after 30 seconds. Google responses are limited to 16 MiB.

Rename Folder

Change a Drive folder's display name.

Inputs

InputTypeHow to use it
AccountAccountChoose a saved Google Drive connector from this organization. Create or reconnect it in Settings > Connectors. Do not enter an API key, password or email address here.
Foldergoogle drive folderSelect the folder to rename or supply its folder ID. This is the existing folder, not a destination.
New Folder NametextThe new display name. The folder keeps the same ID and contents.

Result

An object with fileId, name, mimeType and webViewLink. Optional fields can be absent when Google does not provide them.

Example

Account: choose your Google Drive connector. Folder: folder-id; New Folder Name: Archived reports.

Errors and limits

Reconnect the matching app in Settings if the connection is unavailable. Check the resource IDs and required read or edit permissions. Wait after provider rate limiting. Use live data is required; isolated tests and live debugging cannot contact these services. Provider requests time out after 30 seconds. Google responses are limited to 16 MiB.

Get File

Read file metadata without downloading its content.

Inputs

InputTypeHow to use it
AccountAccountChoose a saved Google Drive connector from this organization. Create or reconnect it in Settings > Connectors. Do not enter an API key, password or email address here.
Filegoogle drive fileSelect the Drive file or supply its file ID from the sharing address. Use the ID, not the full address.

Result

An object with fileId, name, createdTime, modifiedTime, size, mimeType and webViewLink. size is Google's text value in bytes and may be absent for native Google documents.

Example

Account: choose your Google Drive connector. File: file-id.

Errors and limits

A missing file may be deleted or not shared with this account. File bytes and document text are not returned. Reconnect the matching app in Settings if the connection is unavailable. Check the resource IDs and required read or edit permissions. Wait after provider rate limiting. Use live data is required; isolated tests and live debugging cannot contact these services. Provider requests time out after 30 seconds. Google responses are limited to 16 MiB.

Get Folder

Read folder metadata without listing its contents.

Inputs

InputTypeHow to use it
AccountAccountChoose a saved Google Drive connector from this organization. Create or reconnect it in Settings > Connectors. Do not enter an API key, password or email address here.
Foldergoogle drive folderSelect the folder to inspect or supply its ID. Use List files with a parent-folder query for the contents.

Result

An object with fileId, name, createdTime, modifiedTime, mimeType and webViewLink. Optional provider fields can be absent.

Example

Account: choose your Google Drive connector. Folder: folder-id.

Errors and limits

Reconnect the matching app in Settings if the connection is unavailable. Check the resource IDs and required read or edit permissions. Wait after provider rate limiting. Use live data is required; isolated tests and live debugging cannot contact these services. Provider requests time out after 30 seconds. Google responses are limited to 16 MiB.

List files

List one page of accessible Drive files.

Inputs

InputTypeHow to use it
AccountAccountChoose a saved Google Drive connector from this organization. Create or reconnect it in Settings > Connectors. Do not enter an API key, password or email address here.
QuerytextOptional Drive search expression, such as trashed = false or name contains 'Invoice'. Defaults to trashed = false. A custom query replaces this default, so include your own trash filter.
CursortextLeave empty for the first page. For later pages, pass the previous result's nextPageToken unchanged and keep the same filters. Do not use a page number.
LimitnumberWhole number from 1 to 100 for this page. Defaults to 25. The provider may return fewer items; check its next-page token.

Result

Google's page object with files, nextPageToken when another page exists, and incompleteSearch. File entries include id, name, mimeType, modifiedTime and webViewLink when available. files can be empty; an incomplete search does not prove all files were checked.

Example

Account: choose your Google Drive connector. Query: 'folder-id' in parents and trashed = false; Limit: 25. Continue with nextPageToken as Cursor.

Errors and limits

Check Drive query syntax and parent-folder IDs. This reads one bounded page, not every file automatically. Reconnect the matching app in Settings if the connection is unavailable. Check the resource IDs and required read or edit permissions. Wait after provider rate limiting. Use live data is required; isolated tests and live debugging cannot contact these services. Provider requests time out after 30 seconds. Google responses are limited to 16 MiB.

Test safely

Isolated tests and live debugging do not call connected providers. Enable Use live data only when you intend to contact the account. Writes, messages and AI requests can change real data or incur provider charges. A successful connection check does not prove access to every action. These examples explain the command contract; they are not evidence of a completed live provider request.

Related Topics

Webflow commands

Use these commands from an endpoint, server function or event. Choose Add Command → Connector → Webflow, select the action, then choose an Account. Selecting an account reveals the remaining inputs. When the command returns a result, open OUTPUT and use Return as to name it for later commands. [All ...

HubSpot commands

Use these commands from an endpoint, server function or event. Choose Add Command → Connector → HubSpot, select the action, then choose an Account. Selecting an account reveals the remaining inputs. When the command returns a result, open OUTPUT and use Return as to name it for later commands. [All ...

GitLab.com commands

Use these commands from an endpoint, server function or event. Choose Add Command → Connector → GitLab.com, select the action, then choose an Account. Selecting an account reveals the remaining inputs. When the command returns a result, open OUTPUT and use Return as to name it for later commands. [A...

SendGrid commands

Use these commands from an endpoint, server function or event. Choose Add Command → Connector → SendGrid, select the action, then choose an Account. Selecting an account reveals the remaining inputs. When the command returns a result, open OUTPUT and use Return as to name it for later commands. [All...

Salesforce commands

Use these commands from an endpoint, server function or event. Choose Add Command → Connector → Salesforce, select the action, then choose an Account. Selecting an account reveals the remaining inputs. When the command returns a result, open OUTPUT and use Return as to name it for later commands. [A...