Skip to main content
Google

Google Drive

Manage files and folders on Google Drive from the agent.

Google Drive

Lets the agent find, download, upload, move and delete files and folders on Google Drive. It requires a Google Drive connection configured in the workspace.

The available operations

When you add this tool, choose which operations the agent is allowed to perform.


Find files

Searches Drive for files and folders with a query.

ParameterRequiredDefaultWhat it is
QueryYesThe search criteria, Drive-style (e.g. name contains 'report', mimeType='application/pdf', 'me' in owners)
Maximum resultsNo10How many items to return at most
Order byNomodifiedTime descThe sort order (e.g. modifiedTime desc, name asc)
Shared Drive IDNoThe ID of a Shared Drive to search. Omitted, it searches My Drive

Get a file

Returns a file's or folder's full metadata by its ID.

ParameterRequiredDefaultWhat it is
File IDYesThe unique ID of the file or folder

Download a file

Returns a Drive file's download URL. For Google Workspace files (Docs, Sheets, Slides) you can choose the export format.

ParameterRequiredDefaultWhat it is
File IDYesThe unique ID of the file to download
Export formatNoFor Google Workspace files, the target format (e.g. application/pdf, text/csv, application/vnd.openxmlformats-officedocument.spreadsheetml.sheet)

Upload a file

Uploads a file to Drive. It can also create blank native Google Workspace files (Docs, Sheets, Slides).

ParameterRequiredDefaultWhat it is
NameYesThe file's name in Drive
Content (base64)NoThe file's content, base64-encoded. Omit it for native Google Workspace files
MIME typeNoapplication/octet-streamThe file's type (e.g. text/plain, application/pdf, application/vnd.google-apps.spreadsheet)
Destination folder IDNoThe folder to save it in. Omitted, it goes to My Drive's root
DescriptionNoThe file's description

Move a file

Moves or renames a file or folder in Drive.

ParameterRequiredDefaultWhat it is
File IDYesThe unique ID of the file or folder to move or rename
Destination folder IDNoThe destination folder. Omit it to rename only
New nameNoThe file's or folder's new name. Omit it to move only
Source folder IDNoThe current folder (needed when moving between folders, to drop the previous reference)

At least one of "Destination folder ID" or "New name" has to be given.


Delete a file

Removes a file or folder from Drive.

ParameterRequiredDefaultWhat it is
File IDYesThe unique ID of the file or folder to remove
Move to binNotrueWith true, the item goes to the bin (recoverable). With false, it is deleted permanently