Credentials. The agent acts with your Google sign-in; keep it on draft and approval for anything that sends.
Who it is forSomeone who wants their agent to draft mail, read a calendar or update a sheet.
The problemAgents cannot reach your Workspace data without custom tools.
The outcomeAn agent that knows how to call gws for Gmail, Drive, Docs, Calendar and Sheets.
What you need first
- A Google account and a Google Cloud project for OAuth (gws auth setup walks you through it)
- npm, Homebrew, Cargo or Nix
Steps
- Install and authenticate gws
- Add all skills:
npx skills add https://github.com/googleworkspace/cli - Or only some, for example the gws-drive or gws-gmail skill folders
- Ask the agent for a Workspace task and approve each action
Prompt for your agent
Add googleworkspace/cli's gws-gmail and gws-calendar skills to my agent, then draft (do not send) replies to my 3 most recent unread emails and list my meetings for tomorrow.
Caveat.
Use this in your AI agent
Ask your agent
Using the Deduped MCP, get the setup steps for googleworkspace/cli and "Give your coding agent Gmail, Drive and Calendar skills"
Add Deduped to Claude Code once
claude mcp add --transport http deduped https://dedupedai.com/mcp
Every Monday: the 5 hottest repos and exactly how to use them. Free, one email a week, unsubscribe anytime.
Get them freeShare: X LinkedIn Hacker News Email Copy link
Third-party repos we don't own. AI-written use cases can be wrong. Disclaimer