Skip to main content

Google Drive tools

With Google Drive tools, you can create, copy, move, share, and manage files and folders directly from Glean without switching to Google Drive.

Google Drive tools are part of the broader Google tool suite.

When building a workflow agent, the Google Drive tools are available within the plan and execute step. For agents with auto mode, the Google Drive tools are available for all steps. This allows the agent to dynamically determine when to create, move, or manage files and folders to fulfill a complex user request.

Supported tools

The Google Drive tools are enabled as a unified bundle.

The following tools are included:

File creation and management

  • Create file: Creates a new file in Google Drive
  • Create folder: Creates a new folder in Google Drive.
  • Copy file: Creates a copy of an existing file in Google Drive, including its content and metadata.
  • Upload file from URL: Uploads a file to Google Drive from a publicly reachable URL.
  • Move file: Moves an existing file to a different folder in Google Drive.
  • Delete file: Permanently deletes a file from Google Drive.
  • Trash file: Moves a file to the trash in Google Drive, allowing recovery if needed.

File information

  • Get file metadata: Retrieves metadata for a specific file in Google Drive, such as its name, size, type, and parent folder.

Sharing and permissions

  • Create permission: Shares a file or folder by adding a permission for a user, group, or domain.
  • Update permission: Modifies an existing permission on a file or folder, such as changing the role from viewer to editor.

Comments

  • Reply to comment: Adds a reply to an existing comment on a Google Drive file.

Example use cases

Google Drive tools support several common workflow patterns:

  • Automated file organization: An agent can create folder structures and move files into the appropriate locations based on project, team, or date.
  • Content sharing workflows: A workflow can create a file, populate it using other Google tools, and then share it with the right stakeholders by setting permissions.
  • File lifecycle management: An agent can trash outdated files or clean up temporary documents after a workflow completes.
  • Collaborative document setup: A workflow can copy a template file, move it to a project folder, and share it with team members in a single automated sequence.
  • Metadata-driven routing: An agent can retrieve file metadata to determine file type or ownership, then decide how to process or route the file in subsequent steps.

Setup and configuration

Prerequisites

Before configuring tools, ensure you have the following:

You must have administrative access to the Glean admin console.

  • Your organization must have an existing Google Drive connector configured in Glean.
  • You must have access to the Google Cloud Console to enable the required APIs and configure OAuth credentials.
  • The Google Drive API must be enabled in the Google Cloud project linked to your Google tools configuration.

Administrator steps

  1. Enable the tools: In Glean, go to Admin consolePlatform → Tools and add Google Drive extension tools from the template library.
  2. Select the connector instance: Link the tools to your existing Google Drive connector instance.
  3. Configure authentication: Google Drive tools use OAuth user authentication.
    • Central: Use the Glean-managed Google OAuth app when it is available in your environment.
    • Custom OAuth app: If using a customer-managed app, register it in the Google Cloud Console, enable the Google Drive API, configure the OAuth consent screen, and enter the client credentials in Glean.
  4. Save the tools after authentication is complete.
  5. Enable the tools for users: Use Edit settings under Enable Tools to make the tools available to the relevant users and supported Glean surfaces.
note

Google Drive tools use OAuth user authentication exclusively. Domain-wide Delegation is not supported for Google Drive extension tools.

For detailed setup steps, see Google tools setup.

FAQ