
xiyu|3月 05, 2026 03:02
The first thing I did was replace the Google service script I wrote for OpenClaw with the Google Workspace CLI.
Following the principle of 'if there's something ready-made, don't write it yourself,' I went ahead and refactored everything.
---
gws — Unified Google Workspace CLI
Officially released by Google, this CLI handles all Google Workspace APIs (Drive, Gmail, Calendar, Sheets, etc.) in one place.
Key Highlights:
Dynamic Commands — Not a hardcoded command list, but dynamically generated at runtime by reading the Google Discovery Service. When Google adds new APIs, the CLI supports them automatically.
Designed for AI Agents — All outputs are structured JSON, with 100+ Agent Skills included.
MCP Server — Start with one line: `gws mcp -s drive,gmail,calendar`. Any MCP client (Claude Desktop, Gemini CLI) can call it directly.
OpenClaw Compatible — The documentation includes a dedicated setup guide for OpenClaw, with instructions to symlink skills to `~/.openclaw/skills/`.
Model Armor — Integrated with Google Cloud's response sanitization to prevent prompt injection in API responses.
Timeline