Send emails, create drafts, trash messages, and modify labels using gws CLI. Use this skill when any Founder OS plugin needs to write or modify Gmail data — replaces Gmail MCP server write operations.
From founder-osnpx claudepluginhub thecloudtips/founder-os --plugin founder-osThis skill uses the workspace's default tool permissions.
Designs and optimizes AI agent action spaces, tool definitions, observation formats, error recovery, and context for higher task completion rates.
Enables AI agents to execute x402 payments with per-task budgets, spending controls, and non-custodial wallets via MCP tools. Use when agents pay for APIs, services, or other agents.
Compares coding agents like Claude Code and Aider on custom YAML-defined codebase tasks using git worktrees, measuring pass rate, cost, time, and consistency.
Gmail write operations via gws CLI. Covers sending, drafting, trashing, and label management.
gmail.send (for sending), gmail.modify (for label/trash), gmail.insert (for drafts)# Quick send
gws gmail +send --to recipient@example.com --subject 'Subject Line' --body 'Email body text'
# Send with CC
gws gmail +send --to recipient@example.com --cc other@example.com --subject 'Subject' --body 'Body'
The +send helper handles MIME encoding automatically.
# Create a draft (requires base64-encoded MIME message)
gws gmail users drafts create --params '{"userId":"me"}' --json '{"message":{"raw":"BASE64_ENCODED_MIME"}}'
To create the base64 MIME message:
# Build MIME message and base64 encode it
raw=$(printf "To: recipient@example.com\r\nSubject: Draft Subject\r\nContent-Type: text/plain\r\n\r\nDraft body text" | base64 -w 0)
gws gmail users drafts create --params '{"userId":"me"}' --json "{\"message\":{\"raw\":\"$raw\"}}"
gws gmail users messages trash --params '{"userId":"me","id":"MSG_ID"}'
# Add and/or remove labels
gws gmail users messages modify --params '{"userId":"me","id":"MSG_ID"}' --json '{"addLabelIds":["STARRED"],"removeLabelIds":["UNREAD"]}'
Common label IDs: INBOX, UNREAD, STARRED, IMPORTANT, TRASH, SPAM, DRAFT
gws gmail users messages modify --params '{"userId":"me","id":"MSG_ID"}' --json '{"removeLabelIds":["UNREAD"]}'
gws gmail users messages modify --params '{"userId":"me","id":"MSG_ID"}' --json '{"removeLabelIds":["INBOX"]}'