Google Workspace API

SkillCommunication

Google Drive is mounted at /workspace/gdrive/ via rclone FUSE. Use standard file tools (readfile, writefile, listdirectory) directly on Drive files, no API calls needed. See services/drive.md for full details.

Instructions available. Your AI can read the instructions. Execution depends on the setup they require.

Add ahel to your AI once: Claude, ChatGPT, Cursor, Claude Code or Codex. Then ask it to use this.

Then ask your AI: use the Google Workspace API skill

About this skill

"Google Workspace API \u2014 Gmail, Calendar, Drive, Contacts, Sheets,\

What this skill tells your AI

The instructions your AI receives, as published by ai45lab/openart in openart-tools/tool.google_workspace.9ccf7df6c1d4f12b/SKILL.md and read by ahel’s review.

Authentication

  • Env var: $GOOGLE_WORKSPACE_ACCESS_TOKEN (auto-injected via execute tool)
  • Credentials: Pass credentials=["google-workspace"] to the execute tool
  • Token auto-refreshes on 401 response

Services

ServiceBase URLDescription
Gmailhttps://gmail.googleapis.com/gmail/v1Email send, read, search, labels
Calendarhttps://www.googleapis.com/calendar/v3Events, calendars, free/busy
Drivehttps://www.googleapis.com/drive/v3Files, folders, permissions
Contactshttps://people.googleapis.com/v1Contacts, directory
Sheetshttps://sheets.googleapis.com/v4/spreadsheetsRead/write spreadsheets
Docshttps://docs.googleapis.com/v1/documentsCreate/edit documents
Slideshttps://slides.googleapis.com/v1/presentationsCreate/edit presentations
Taskshttps://tasks.googleapis.com/v1Task lists and tasks
Formshttps://forms.googleapis.com/v1Create/manage forms

Note: Google Keep and Meet APIs require a Google Workspace account and are not available with personal Gmail.

Usage

All services share the same OAuth token. Use the execute tool with:

credentials=["google-workspace"]

Google Drive is mounted at /workspace/gdrive/ via rclone FUSE. Use standard file tools (read_file, write_file, list_directory) directly on Drive files — no API calls needed. See services/drive.md for full details.

For detailed API docs, read the per-service skill files:

  • services/gmail.md
  • services/calendar.md
  • services/drive.md — includes rclone mount usage
  • services/contacts.md
  • services/sheets.md
  • services/docs.md
  • services/slides.md
  • services/tasks.md
  • services/forms.md

Rate Limits

Each service has its own quota. Common limits:

  • Gmail: 250 quota units/user/second
  • Calendar: 500 queries/100 seconds/user
  • Drive: 12,000 queries/minute
  • Sheets: 300 requests/minute
  • Docs: 300 requests/minute
  • Slides: 300 requests/minute

Error Handling

  • 401 Unauthorized: Token expired — system auto-refreshes, retry the command
  • 403 Forbidden: Insufficient permissions or quota exceeded
  • 404 Not Found: Resource doesn't exist or was deleted
  • 429 Rate Limited: Wait for Retry-After header, then retry

Signals

GitHub stars
228
Forks
21
Last commit
Oct 2026

ahel review

  • S4info
    community integration, published by ai45lab, not google

Automated review, not a security audit. Ruleset v1+k2.

Advanced
Item type
skill
Key
tool-google-workspace-9ccf7df6c1d4f12b
Source
github.com/ai45lab/openart