Skip to main content
Google

Gmail

Manage Gmail email from the agent.

Gmail

Lets the agent find, read, send, move and delete email in Gmail. It requires a Google Gmail connection configured in the workspace.

The available operations

When you add this tool, choose which operations the agent is allowed to perform.


Find email

Searches the inbox with a query in Gmail's own format.

ParameterRequiredDefaultWhat it is
QueryYesThe search criteria, Gmail-style (e.g. from:joao@example.com, subject:meeting, is:unread, has:attachment)
Maximum resultsNo10How many messages to return at most
Include spam and binNofalseWith true, messages in the spam and bin folders are included

Get an email

Returns one message's details by its ID.

ParameterRequiredDefaultWhat it is
Email IDYesThe message's unique ID
FormatNofullHow much detail comes back: full (with the body), metadata (headers only), minimal or raw

Send an email

Sends a message from the connected Gmail account.

ParameterRequiredDefaultWhat it is
ToYesThe main recipients' addresses
CCNoThe addresses to copy
BCCNoThe addresses to blind-copy
SubjectYesThe message's subject
BodyYesThe message's content
Body is HTMLNofalseWith true, the body is treated as HTML. With false, it is sent as plain text
Reply-toNoThe address replies should go to
Thread IDNoThe thread's ID, to send the message as a reply within an existing conversation

Move an email

Moves a message to a different folder by adding or removing Gmail labels.

ParameterRequiredDefaultWhat it is
Email IDYesThe unique ID of the message to move
Labels to addNoThe label IDs to add (e.g. INBOX, STARRED, Label_123)
Labels to removeNoThe label IDs to remove (e.g. INBOX, UNREAD)

At least one of "Labels to add" or "Labels to remove" has to be given.


Delete an email

Removes a message, either to the bin or permanently.

ParameterRequiredDefaultWhat it is
Email IDYesThe unique ID of the message to remove
Move to binNotrueWith true, the message goes to the bin (recoverable). With false, it is deleted permanently