Skip to main content

Module google

Module google 

Source
Expand description

Google connectors: Calendar, Drive and Gmail for agents, called by srv. Google connectors: srv calls Google for an agent, with the account’s token, which no agent ever holds (docs/specs/SPEC_GOOGLE_CONNECTORS_GMAIL_CALENDAR_DRIVE_2026_10_14.md D2).

  • [Service]: each service’s scopes, by grant level (§3.2).
  • [GoogleHttp]: Google’s REST APIs, behind a trait so tests stub them.
  • [calendar], [drive], [gmail]: the Calendar, Drive and Gmail tools’ actions, as requests and trimmed answers.

Modules§

access
Which Google account an agent uses for a service, and at what level, or a sentence saying why it can’t and who can change that (D4).
calendar
The Calendar tool’s read actions (G1a), named after Google’s Calendar MCP tools (SPEC_GOOGLE_CONNECTORS_GMAIL_CALENDAR_DRIVE_2026_10_14.md §5): list_calendars, list_events, search_events, free_busy.
calls
One agent tool call to Google, end to end: whose account and grant (super::access), whether the token covers the action, a fresh token (srv refreshes it; the agent never sees it), the request, the trimmed answer, and a line in the account’s log (D7) however it ends.
drive
The Drive tool’s read actions (G2), named after Google’s Drive MCP tools (SPEC_GOOGLE_CONNECTORS_GMAIL_CALENDAR_DRIVE_2026_10_14.md §5): search_files, get_file_metadata, read_file_content. On drive.file an account reaches only the files the person picked (Google’s desktop picker, §3.3) and the ones AgentMux made, so a search is over those and nothing else.
gmail
The Gmail tool’s read actions (G3), named after Google’s Gmail MCP tools (SPEC_GOOGLE_CONNECTORS_GMAIL_CALENDAR_DRIVE_2026_10_14.md §5): search_threads, get_thread, list_labels.
gmail_flow
One Gmail write call end to end (G3): whose account and whether the agent may write (super::access), whether the token covers the action, the person’s yes for what can’t be taken back (send_draft, trash_thread: SPEC_GOOGLE_CONNECTORS_GMAIL_CALENDAR_DRIVE_2026_10_14.md §6), the call, and a line in the account’s log however it ends.
gmail_sender
Whether a mail’s sender was proven: the sender check get_thread shows for each message, a short line per thread in search_threads, and the option to read a message’s raw header lines.
gmail_thread
What the window that asks to send a draft says about the thread the draft replies into: which thread it is, who is in it, and a warning when none of the draft’s recipients has taken part in it (a draft for one person that sits in another person’s thread, #47852). It is shown text only: the digest of the draft, which decides what is sent, does not take it. The pure half, as super::gmail_write is: the flow that fetches the thread is super::gmail_flow.
gmail_write
The Gmail tool’s write actions (G3), named after Google’s Gmail MCP tools (SPEC_GOOGLE_CONNECTORS_GMAIL_CALENDAR_DRIVE_2026_10_14.md §5, §6): create_draft, update_draft, label_thread (no prompt with a write grant), send_draft and trash_thread (always ask the person).

Structs§

GoogleRequest
One request to a Google REST API.
LiveGoogleHttp
GoogleHttp over the network.

Enums§

Service
A Google service an account can be used for.

Constants§

TEXT_CAP
The most bytes of a file read_file_content takes from Google.

Traits§

GoogleHttp
Google’s REST APIs.

Functions§

google_error
Google’s own message for a failed call, in one sentence for the agent.