Gmail Integration
Gmail API Operations
Browse all 62 operations available for Gmail workflow automation.
communication
62 operationsGMAIL_BATCH_DELETE_MESSAGESBatch delete Gmail messages
Tool to permanently delete multiple Gmail messages in bulk, bypassing Trash with no recovery possible.
GMAIL_BATCH_MODIFY_MESSAGESBatch modify Gmail messages
Modify labels on multiple Gmail messages in one efficient API call.
GMAIL_CREATE_FILTERCreate Gmail filter
Tool to create a new Gmail filter with specified criteria and actions.
GMAIL_CREATE_PROMPT_POSTCreate Prompt Post
Send a one-shot prompt to the Sanity Content Agent.
GMAIL_CREATE_EMAIL_DRAFTCreate email draft
Creates a Gmail email draft.
GMAIL_CREATE_LABELCreate label
Creates a new label with a unique name in the specified user's Gmail account.
GMAIL_DELETE_DRAFTDelete Draft
Permanently deletes a specific Gmail draft using its ID with no recovery possible; verify the correct draftid and obtain explicit user confirmation before…
GMAIL_DELETE_FILTERDelete Gmail filter
Tool to permanently delete a Gmail filter by its ID.
GMAIL_DELETE_LABELDelete label from account (permanent)
Permanently DELETES a user-created Gmail label from the account (not from a message).
GMAIL_DELETE_MESSAGEDelete message
Permanently deletes a specific email message by its ID from a Gmail mailbox; for userid, use 'me' for the authenticated user or an email address to which the…
GMAIL_DELETE_THREADDelete thread
Tool to immediately and permanently delete a specified thread and all its messages.
GMAIL_FETCH_MESSAGE_BY_THREAD_IDFetch Message by Thread ID
Retrieves messages from a Gmail thread using its threadid, where the thread must be accessible by the specified userid.
GMAIL_FETCH_EMAILSFetch emails
Fetches a list of email messages from a Gmail account, supporting filtering, pagination, and optional full content retrieval.
GMAIL_FETCH_MESSAGE_BY_MESSAGE_IDFetch message by message ID
Fetches a specific email message by its ID, provided the messageid exists and is accessible to the authenticated userid.
GMAIL_FORWARD_MESSAGEForward email message
Forward an existing Gmail message to specified recipients, preserving original body and attachments.
GMAIL_GET_AUTO_FORWARDINGGet Auto-Forwarding Settings
Tool to get the auto-forwarding setting for the specified account.
GMAIL_GET_DRAFTGet Draft
Retrieves a single Gmail draft by its ID.
GMAIL_GET_ATTACHMENTGet Gmail attachment
Retrieves a specific attachment by ID from a message in a user's Gmail mailbox, requiring valid message and attachment IDs.
GMAIL_GET_FILTERGet Gmail filter
Tool to retrieve a specific Gmail filter by its ID.
GMAIL_SETTINGS_GET_IMAPGet IMAP Settings
Retrieves the IMAP settings for a Gmail user account, including whether IMAP is enabled, auto-expunge behavior, expunge behavior, and maximum folder size.
GMAIL_GET_LANGUAGE_SETTINGSGet Language Settings
Tool to retrieve the language settings for a Gmail user.
GMAIL_SETTINGS_GET_POPGet POP settings
Tool to retrieve POP settings for a Gmail account.
GMAIL_GET_PEOPLEGet People
Retrieves either a specific person's details (using resourcename) or lists 'Other Contacts' (if othercontacts is true), with personfields specifying the data…
GMAIL_GET_PROFILEGet Profile
Retrieves Gmail profile information (email address, aggregate messagesTotal/threadsTotal, historyId) for a user.
GMAIL_GET_VACATION_SETTINGSGet Vacation Settings
Tool to retrieve vacation responder settings for a Gmail user.
GMAIL_GET_CONTACTSGet contacts
Fetches contacts (connections) for the authenticated Google account, allowing selection of specific data fields and pagination.
GMAIL_GET_LABELGet label details
Gets details for a specified Gmail label.
GMAIL_SETTINGS_SEND_AS_GETGet send-as alias
Tool to retrieve a specific send-as alias configuration for a Gmail user.
GMAIL_IMPORT_MESSAGEImport message
Tool to import a message into the user's mailbox with standard email delivery scanning and classification.
GMAIL_INSERT_MESSAGEInsert message into mailbox
Tool to insert a message into the user's mailbox similar to IMAP APPEND.
GMAIL_LIST_CSE_IDENTITIESList CSE identities
Tool to list client-side encrypted identities for an authenticated user.
GMAIL_LIST_CSE_KEYPAIRSList CSE key pairs
Tool to list client-side encryption key pairs for an authenticated user.
GMAIL_LIST_DRAFTSList Drafts
Retrieves a paginated list of email drafts from a user's Gmail account.
GMAIL_LIST_FILTERSList Gmail filters
Tool to list all Gmail filters (rules) in the mailbox.
GMAIL_LIST_HISTORYList Gmail history
Tool to list Gmail mailbox change history since a known startHistoryId.
GMAIL_LIST_LABELSList Gmail labels
Retrieves all system and user-created labels for a Gmail account in a single unpaginated response.
GMAIL_LIST_MESSAGESList Gmail messages (Deprecated)
DEPRECATED: Use GMAILFETCHEMAILS instead.
GMAIL_LIST_SMIME_INFOList S/MIME configs
Lists S/MIME configs for the specified send-as alias.
GMAIL_LIST_FORWARDING_ADDRESSESList forwarding addresses
Tool to list all forwarding addresses for the specified Gmail account.
GMAIL_LIST_SEND_ASList send-as aliases
Lists the send-as aliases for a Gmail account, including the primary address and custom 'from' aliases.
GMAIL_LIST_THREADSList threads
Retrieves a list of email threads from a Gmail account, identified by userid (email address or 'me'), supporting filtering and pagination.
GMAIL_ADD_LABEL_TO_EMAILModify email labels
Adds and/or removes specified Gmail labels for a message; ensure messageid and all labelids are valid (use 'listLabels' for custom label IDs).
GMAIL_MODIFY_THREAD_LABELSModify thread labels
Adds or removes specified existing label IDs from a Gmail thread, affecting all its messages; ensure the thread ID is valid.
GMAIL_MOVE_TO_TRASHMove to Trash
Moves an existing, non-deleted email message to the trash for the specified user.
GMAIL_PATCH_LABELPatch Label
Patches the specified user-created label.
GMAIL_PATCH_SEND_ASPatch send-as alias
Tool to patch the specified send-as alias for a Gmail user.
GMAIL_REPLY_TO_THREADReply to email thread
Sends a reply within a specific Gmail thread using the original thread's subject; do not provide a custom subject as it will start a new conversation instead…
GMAIL_SEARCH_PEOPLESearch People
Searches contacts by matching the query against names, nicknames, emails, phone numbers, and organizations, optionally including 'Other Contacts'.
GMAIL_SEND_DRAFTSend Draft
Sends an existing draft email AS-IS to recipients already defined within the draft.
GMAIL_SEND_EMAILSend Email
Sends an email via Gmail API using the authenticated user's Google profile display name.
GMAIL_STOP_WATCHStop watch notifications
Tool to stop receiving push notifications for a Gmail mailbox.
GMAIL_MOVE_THREAD_TO_TRASHTrash thread
Moves the specified thread to the trash.
GMAIL_UNTRASH_MESSAGEUntrash Message
Tool to remove a message from trash in Gmail.
GMAIL_UNTRASH_THREADUntrash thread
Tool to remove a thread from trash in Gmail.
GMAIL_UPDATE_IMAP_SETTINGSUpdate IMAP settings
Tool to update IMAP settings for a Gmail account.
GMAIL_UPDATE_LABELUpdate Label
Tool to update the properties of an existing Gmail label.
GMAIL_UPDATE_LANGUAGE_SETTINGSUpdate Language Settings
Tool to update the language settings for a Gmail user.
GMAIL_UPDATE_POP_SETTINGSUpdate POP settings
Tool to update POP settings for a Gmail account.
GMAIL_UPDATE_USER_ATTRIBUTES_VALUESUpdate User Attributes Values
Update user attribute values for a resource.
GMAIL_UPDATE_VACATION_SETTINGSUpdate Vacation Settings
Tool to update vacation responder settings for a Gmail user.
GMAIL_UPDATE_DRAFTUpdate draft
Updates (replaces) an existing Gmail draft's content in-place by draft ID.
GMAIL_UPDATE_SEND_ASUpdate send-as alias
Tool to update a send-as alias for a Gmail user.