Search documentation

Search guides, connectors and tools

Google Drive

Google Drive connector to search, read, and manage files and folders.

google-driveOAuth6 tools1 trigger

Tools

Ask an agent for what you need in plain language — it picks the right tool itself. You can also limit which of these an agent may use, and require your approval before any of them runs.

Search Files

searchFiles€0.01 per call

Search Google Drive for files and folders by name, content, folder, or type.

ParameterTypeDescription
querystringText to match against file names and full-text content.
parentFolderIdstringRestrict results to direct children of this folder ID.
mimeTypestringRestrict results to a specific MIME type (e.g. "application/vnd.google-apps.folder").
pageSizeinteger

Read File

readFile€0.01 per call

Read the text content of a Google Drive file. Google Docs, Sheets, and Slides are exported to text. Binary files should be saved with downloadFile instead.

ParameterTypeDescription
fileIdrequiredstringThe Drive file ID to read.

Download File

downloadFile€0.01 per call

Download a Google Drive file into agent file storage.

ParameterTypeDescription
fileIdrequiredstringThe Drive file ID to download.
destinationPathstringDestination path in agent storage (e.g. "/google-drive/report.pdf"). Defaults to "/google-drive/<file name>". Google Workspace files get an exported extension.

Upload File

uploadFile€0.01 per call

Upload a file from agent storage to Google Drive.

ParameterTypeDescription
filePathrequiredstringAbsolute path to the file in agent storage (e.g. "/drive/report.pdf").
namestringName for the uploaded file in Drive. Defaults to the source file name.
parentFolderIdstringID of the Drive folder to upload into. Defaults to the root.

Create Folder

createFolder€0.01 per call

Create a new folder in Google Drive.

ParameterTypeDescription
namerequiredstringName of the new folder.
parentFolderIdstringID of the parent folder. Defaults to the root.

Move or Rename File

moveFile€0.01 per call

Move a Google Drive file to another folder and/or rename it.

ParameterTypeDescription
fileIdrequiredstringThe Drive file ID to move or rename.
addParentFolderIdstringFolder ID to move the file into.
removeParentFolderIdstringCurrent parent folder ID to remove the file from.
namestringNew name for the file (rename).

Triggers

Triggers start an agent automatically when something happens in the connected account. See triggers and schedules.

New File in Folder

googleDriveNewFile

Triggers when a new file is added to a Google Drive folder.

Filters

ParameterTypeDescription
folderIdrequiredstring
folderNamestring
namePatternstring
mimeTypestring

Permissions

You choose what to grant on the provider's consent screen. A tool is only available to your agents if you granted the permission it needs, so granting less simply means fewer tools.

  • https://www.googleapis.com/auth/drive
  • https://www.googleapis.com/auth/drive.readonly