Skip to main content
Cotool reads Google Drive through a service account it creates for your organization. The account acts as itself, not as anyone in your domain, so Cotool reads only what you share with it. Nobody signs in with Google, and no Google token is stored. Agents can search and read what you share: Google Docs, Sheets (one sheet per call), Slides as text, and plain text files. The same files can be attached to chats as Google Docs context.

Setup

1

Open the connect dialog

In Cotool, open Integrations, find Google Drive and click Connect.
2

Get the account email

Click Get account email and copy the address. It ends in .iam.gserviceaccount.com.
3

Share with the account

In Google Drive, share each file or folder Cotool should read with that email as a Viewer. For a shared drive, add the email as a member with Viewer access. Files added to a shared folder or drive later are readable without connecting again.
4

Check access

Back in Cotool, click Check access and connect. Cotool lists what it can read and connects once something is shared with it: a file, a folder or a shared drive.
Disconnecting Google Drive in Cotool stops agents from reading it, but the files stay shared with the account. To revoke Cotool’s access fully, remove the account from the sharing settings of what you shared with it. Anyone who knows the account’s email can share files with it, as with any Google account, and agents can read what is shared. The email is visible in the sharing settings of every file you share with it. Remove anything shared with it by mistake from those sharing settings.

Troubleshooting

  • Google Drive won’t share with the address. Your organization may block sharing outside your domain. A Google Workspace admin can allow the address under Apps > Google Workspace > Drive and Docs > Sharing settings, for example with a trust rule or an allowlisted domain.
  • Cotool can’t see any files yet. Sharing can take a minute to apply. Check that the file is shared with the exact address, then check access again.
  • Google Drive shows as disconnected after it worked. If Cotool’s service account was deleted and created again, it keeps the same email but none of the old shares. Open the connect dialog, share your files with the account again and check access.
  • Connected before through Google sign-in. That connection reads everything the person who connected can open, and stops working on March 1, 2027. Connect again through the service account to read only what you share. Cotool then revokes the Google sign-in, unless the same person also connected Google Workspace Admin through a sign-in, which uses the same grant.