Tools · Services

gmail_search

Read-only

Search, read, draft, and send Gmail messages from a configured Google account.

When to use: Use this for inbox search, message lookup, labels, drafts, sending email, and Gmail thread context.

Example

The call

tool call
{
  "tool": "gmail_search",
  "arguments": {
    "action": "search",
    "query": "from:[email protected] newer_than:7d"
  }
}

Needs a connected Google account

So it isn't run here, and no output is shown: nothing on this page is made up.

Parameters

NameTypeDescription
action*stringGmail action to performsearchread_messageread_threadget_attachmentlist_labelscreate_draftsend_message
querystringGmail query like "from:john unread" or "invoice"
max_resultsintegerMaximum number of messages to return
message_idstringMessage ID for read_message
thread_idstringThread ID for read_thread
attachment_idstringAttachment ID for get_attachment
filenamestringAttachment filename for display
include_bodybooleanInclude decoded body content in the response
include_attachmentsbooleanInclude attachment metadata in the response
toarrayRecipient email list
ccarrayCC email list
bccarrayBCC email list
subjectstringEmail subject
bodystringEmail body content

* required

Work in GitHub, Slack, Jira, Linear, Notion, Google, Stripe and more.