The Gmail extension allows your agent to interact with your Gmail inbox — listing and searching messages, reading full email content, sending new emails, creating drafts, replying to threads, and trashing messages. It’s ideal for automating email workflows, monitoring important threads, or sending notifications directly from your agent.Documentation Index
Fetch the complete documentation index at: https://docs.ironclaw.com/llms.txt
Use this file to discover all available pages before exploring further.
Setup
If you haven’t set up Google OAuth yet, complete the Google OAuth Setup first.Enable the Gmail API
In your Google Cloud project, navigate to APIs & Services → Library, search for Gmail API, and click Enable.
Authorize Access
Available Actions
list_messages: List messages in your inbox with an optional Gmail search query, label filter, and result limitget_message: Read the full content of a message by ID, including headers, body, and labelssend_message: Send a new email with recipient(s), subject, body, and optional CC addressescreate_draft: Save a message as a draft without sending itreply_to_message: Reply to an existing message thread, keeping the conversation history intacttrash_message: Move a message to the trash
Example Usage
Once configured, you can ask your agent things like:- “What emails did I receive from alice@example.com this week?”
- “Read my latest unread message”
- “Send an email to bob@example.com with subject ‘Meeting Notes’ and a summary of today’s discussion”
- “Draft a follow-up to the project proposal thread”
- “Reply to the last message in the invoice thread saying the payment has been processed”
- “Trash all emails from noreply@newsletter.com”
Gmail Search Syntax
Thelist_messages action accepts standard Gmail search queries in the query field:
| Query | Matches |
|---|---|
from:alice@example.com | Messages from Alice |
subject:invoice | Messages with “invoice” in the subject |
is:unread | Unread messages |
label:work | Messages with the “work” label |
after:2025/01/01 | Messages received after January 1, 2025 |
has:attachment | Messages with attachments |