OpenParable
Skip to content
← Back to skills

Gog Gmail

Apps & Automation
gog-gmail

Gog Gmail is an Agent Skill for apps & automation published in the openclaw/gogcli repository on GitHub: a SKILL.md instruction file an AI agent can load to do this task.

Gmail operations through gog.

View on GitHub ↗
QUICK START

How to use this skill

Bring this guide into your coding agent with a prompt tailored to the tool you use.

  1. Open your project in Codex.
  2. Copy and paste the prompt below.
  3. Review files and risks before approving any action.
Prompt to paste
Inspect the Agent Skill at https://github.com/openclaw/gogcli/blob/HEAD/.agents/skills/gog-gmail/SKILL.md and all supporting files. Report provenance, permissions, scripts, dependencies, and security risks. Propose an exact installation into .agents/skills/gog-gmail, but wait for my approval before writing files or running scripts.

Copying this prompt does not install or run the skill. Review third-party files before use.

Gmail

Use gog for Gmail operations. Read ../gog/SKILL.md first for shared auth, output, safety, and live-write rules.

Safe start

gog auth list --check --json --no-input
gog schema gmail --json
gog --readonly --account [email protected] gmail search 'newer_than:7d' --max 10 --json --wrap-untrusted
  • Select the account explicitly with --account.
  • Use --json --wrap-untrusted for agent-readable Google content.
  • Use --readonly when the task must not mutate Google data.
  • Use --no-input in automation and --dry-run before supported writes.
  • Confirm the exact account, object, and mutation before any write or delete.

Commands

CommandPurpose
archiveArchive messages or explicit threads (remove from inbox)
attachmentDownload a single attachment
autoreplyReply once to matching messages
batchBatch operations (permanent delete requires broader Gmail scope; use gmail trash for normal trashing)
draftsDraft operations
forwardForward a message to new recipients
getGet a message (full|metadata|raw)
historyGmail history
labelsLabel operations
mark-readMark messages as read
messagesMessage operations
rawDump raw Gmail API response as JSON (Users.Messages.Get; lossless; for scripting and LLM consumption)
replyReply to a message
reply-allReply to all message participants
searchSearch threads using Gmail query syntax
sendSend an email
settingsSettings and admin
threadThread operations (get, modify)
trackEmail open tracking
trashMove messages to trash
unreadMark messages as unread
urlPrint Gmail web URLs for threads

Run gog gmail <command> --help for flags and gog schema gmail <command> --json for the machine-readable contract. Do not guess command syntax.