Skip to main content
The @guildai-services/guildai~google-drive package gives your agents access to files and folders in Google Drive through Guild’s Google Drive integration.

Authentication

  • Type: OAuth 2.0
  • Token management: Refreshed automatically

Setup

1

Open Credentials

Go to Credentials in Guild.
2

Connect Google Drive

Click Google Drive and authorize with your Google account.

Usage

import { googleDriveTools } from "@guildai-services/guildai~google-drive"
import { llmAgent } from "@guildai/agents-sdk"

export default llmAgent({
  description: "An agent that manages files in Google Drive",
  tools: { ...googleDriveTools },
})

Selecting specific tools

Tools are named with the google_drive_ prefix. Use pick() to include only what your agent needs.
import { googleDriveTools } from "@guildai-services/guildai~google-drive"
import { llmAgent, pick } from "@guildai/agents-sdk"

export default llmAgent({
  description: "An agent that organizes Drive files",
  tools: {
    ...pick(googleDriveTools, [
      "google_drive_files_list",
      "google_drive_files_get",
      "google_drive_files_create",
      "google_drive_files_delete",
    ]),
  },
})