Skip to main content
Roberty Studio
AIGoogle

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
QueryYes—The 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 IDNo—The 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 IDYes—The 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 IDYes—The unique ID of the file to download
Export formatNo—For 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
NameYes—The file's name in Drive
Content (base64)No—The 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 IDNo—The folder to save it in. Omitted, it goes to My Drive's root
DescriptionNo—The file's description

Move a file​

Moves or renames a file or folder in Drive.

ParameterRequiredDefaultWhat it is
File IDYes—The unique ID of the file or folder to move or rename
Destination folder IDNo—The destination folder. Omit it to rename only
New nameNo—The file's or folder's new name. Omit it to move only
Source folder IDNo—The 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 IDYes—The 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