melso
AutomationUse casesChangelog
Start your business
Hermes and Google Drive

Connect Hermes to Google Drive

Give your Hermes agent access to Google Drive in Melso — 77 tools it can call while it works through a task.

Set it up in Melso

  1. 1In Melso, open Settings → Agent Apps and hit Connect on Google Drive.
  2. 2Finish the OAUTH2 sign-in in the window that opens. Melso stores the connection, not your credentials.
  3. 3Open your Hermes agent, go to its Agent Apps tab, and allow Google Drive.
  4. 4Give the agent a task. It calls Google Drive itself when the work needs it.
Get Melso
What you get

What Google Drive gives your agent

The tools, permissions, and events Google Drive exposes — the same ones your agent can use once the app is authorized.

What you sign in with

Google Drive connects with OAUTH2.

  • Client id
  • Client secret

Permissions

https://www.googleapis.com/auth/drivehttps://www.googleapis.com/auth/userinfo.email

Tools Google Drive exposes

GOOGLEDRIVE_ADD_FILE_SHARING_PREFERENCE

Add file sharing preference (Deprecated)

DEPRECATED: Use GOOGLEDRIVE_CREATE_PERMISSION instead; use GOOGLEDRIVE_UPDATE_PERMISSION to modify existing permissions (avoids duplicate entries). Modifies sharing permissions for an existing Google Drive file, granting a specified role to a user, group, domain, or 'anyone'. Bulk calls may trigger 403 rateLimitExceeded (~100 req/100s/user); use jittered exponential backoff.

GOOGLEDRIVE_ADD_PARENT

Insert File Parent (v2)

Tool to add a parent folder for a file using Google Drive API v2. Use when you need to add a file to an additional folder.

GOOGLEDRIVE_ADD_PROPERTY

Insert Property (v2 API)

Tool to add a property to a file, or update it if it already exists (v2 API). Use when you need to attach custom key-value metadata to a Google Drive file.

GOOGLEDRIVE_COPY_FILE

Copy file (Deprecated)

DEPRECATED: Use GOOGLEDRIVE_COPY_FILE_ADVANCED instead. Duplicates an existing file (not folders) in Google Drive by `file_id`; copy lands in same folder as original — use GOOGLEDRIVE_MOVE_FILE afterward for precise placement. Copy receives a new `file_id`; update stored references accordingly. For shared drives, requires organizer/manager rights.

GOOGLEDRIVE_COPY_FILE_ADVANCED

Copy file with advanced options

Creates a copy of a file and applies any requested updates with patch semantics. Use when you need to duplicate a file with advanced options like label inclusion, visibility settings, or custom metadata.

GOOGLEDRIVE_CREATE_COMMENT

Create Comment

Tool to create a comment on a file in Google Drive. Returns a nested `data` object; extract `data.id` for the resulting comment identifier. Omit `anchor` and `quoted_file_content_*` for general file-level comments.

GOOGLEDRIVE_CREATE_DRIVE

Create Shared Drive

Tool to create a new shared drive. Use when you need to programmatically create a new shared drive for collaboration or storage.

GOOGLEDRIVE_CREATE_FILE

Create File or Folder

Creates a new file or folder in Google Drive. Supports both metadata-only creation (for folders and empty documents) and file upload with content. When file_to_upload is provided, uploads the actual file bytes; otherwise creates an empty file. Native Google file types (Docs, Sheets, Forms, etc.) and folders are created as empty shells when no content is provided; content must be added manually afterward. Newly created files are private by default — set sharing permissions afterward for collaboration. For shared-drive folders, use this tool with the target folder ID in `parents` rather than GOOGLEDRIVE_CREATE_FOLDER.

Events your agent can react to

GOOGLEDRIVE_COMMENT_ADDED_TRIGGER

Comment Added (Docs/Sheets/Slides)

Triggers when a new comment is added to Google Docs, Sheets, or Slides.

GOOGLEDRIVE_FILE_CREATED_TRIGGER

File Created

Triggers when a new file is created in Google Drive.

GOOGLEDRIVE_FILE_DELETED_OR_TRASHED_TRIGGER

File Deleted or Trashed

Triggers when a file is moved to trash or permanently deleted in Drive.

GOOGLEDRIVE_FILE_SHARED_PERMISSIONS_ADDED

File Shared (Permissions Added)

Triggers when new sharing permissions are granted to a file or folder. Uses Drive's `changes.list` endpoint with inline `permissions` in the `fields` mask so each change carries the file's current permission set provider-atomically. We diff that against `seen_permission_keys` to identify newly added grants. Drive page tokens are the primary cursor; if Drive rejects a stored token, the trigger raises `PollingTriggerError` without clearing state rather than silently re-baselining and dropping events. Limitation: truly ephemeral permissions (added and revoked between two polls without any other file modification in between) are not detected. Drive Activity API would catch those but requires an additional OAuth scope and a different payload contract.

GOOGLEDRIVE_FILE_UPDATED_TRIGGER

File Updated

Triggers when a file's metadata or content changes in Google Drive.

GOOGLEDRIVE_GOOGLE_DRIVE_CHANGES

Google Drive Changes

Triggers when changes are detected in a Google Drive.

Example prompts

  • Use Google Drive to check recent changes and summarize them in the issue.
  • When a customer writes in, pull their data from Google Drive before replying.
  • Audit our open items in Google Drive and notify the channel of anything stale.

Useful links

  • Google Drive website
  • Melso Agent Apps docs

More in File Management & Storage

  • Google Drive
  • OneDrive
  • Dropbox
  • Google Photos
  • Google Super
melso

Run your company with AI agents.

Start your business

Product

  • Home
  • Automation
  • Melso vs Polsia
  • Use cases
  • Changelog
  • Download

Resources

    Company

    • About
    • Contact Sales

    © 2026 Melso. All rights reserved.