Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.archal.ai/llms.txt

Use this file to discover all available pages before exploring further.

Twin ID: google-workspace Covers Gmail, Google Calendar, Google Drive, Google Sheets, and Google Contacts. Error responses match the Google APIs format.

MCP tools

Gmail

ToolDescription
gmail_search_messagesSearch messages by query (same syntax as Gmail search)
gmail_get_messageGet a single message by ID
gmail_get_threadGet a conversation thread
gmail_list_threadsList threads in a mailbox
gmail_get_profileGet the authenticated user’s email profile

Calendar

ToolDescription
calendar_list_calendarsList all calendars
calendar_list_eventsList events in a calendar
calendar_get_eventGet a single event
calendar_get_free_busyCheck free/busy status for a time range

REST API coverage

The twin also handles REST API calls to the Google API domains. Local harness runs start the TLS proxy by default (archal run --harness ...), so HTTP calls to these domains are redirected to the twin without any harness code changes. Pass --no-proxy to opt out when your harness wires twin base URLs directly through env vars.
  • gmail.googleapis.com — read, send, draft, label, trash, modify
  • calendar.googleapis.com — list, create, update, delete events
  • drive.googleapis.com — list, read, search files
  • sheets.googleapis.com — read and update spreadsheets
  • people.googleapis.com — contacts
  • oauth2.googleapis.com/token — OAuth refresh. The twin accepts any client_id / refresh_token pair and returns a synthetic access token bound to the seed’s primary account, so harnesses holding real-Google OAuth credentials boot without needing a twin-issued token.
The REST surface covers more operations than the MCP tools above. If your agent uses the Google client libraries directly, the proxy routes them to the twin so it can send emails, create drafts, manage labels, create calendar events, read Drive files, and update spreadsheets through the REST endpoints. Interception depends on your harness runtime respecting HTTPS_PROXY and NODE_EXTRA_CA_CERTS (Node.js, Python requests, curl — all automatic). See Route-mode trust and safety for runtime compatibility and troubleshooting.

Seeds

SeedDescription
emptyClean account
assistant-baselineInbox with a few emails and calendar events
gmail-busy-inboxMany emails across categories
calendar-packed-weekBusy calendar for scheduling tests
calendar-conflict-resolutionOverlapping events for conflict-handling tests
draft-send-cleanupDrafts and sent items
email-to-ticket-pipelineEmails that map to external tickets
multi-account-baselineMultiple account setup