Skip to Content

Gmail

Gmail icon
Arcade Optimized

Arcade.dev LLM tools for Gmail

Author:Arcade
Version:4.1.0
Auth:User authorization via the Google auth provider
18tools
PyPI VersionPython VersionsWheel StatusDownloadsLicense

Arcade.dev's Gmail toolkit enables seamless integration with the Gmail API, allowing developers to manage emails and labels effectively within their applications.

Capabilities

  • Manage email threads and labels.
  • Compose, send, and manage drafts.
  • Retrieve detailed user profile information.
  • Support for email searching and filtering.
  • Efficiently handle email status changes such as trashing.

OAuth

  • Provider: Google
  • Scopes: Access to read, compose, modify, and send Gmail emails, alongside user profile information.

Secrets

  • No secret types required for toolkit operation.

Available tools(18)

18 of 18
Tool nameDescriptionSecrets
Add and remove labels from an email using the Gmail API.
Create a new label in the user's mailbox.
Delete a draft email using the Gmail API.
Get the specified thread by ID.
Lists draft emails in the user's draft mailbox using the Gmail API.
Read emails from a Gmail account and extract plain text content.
Search for emails by header using the Gmail API.
List all the labels in the user's mailbox.
List threads in the user's mailbox.
Send a reply to an email message.
Search for threads in the user's mailbox
Send a draft email using the Gmail API.
Send an email using the Gmail API.
Move an email to the trash folder using the Gmail API.
Update an existing email draft using the Gmail API.
Get comprehensive user profile and Gmail account information. This tool provides detailed information about the authenticated user including their name, email, profile picture, Gmail account statistics, and other important profile details from Google services.
Compose a new email draft using the Gmail API.
Compose a draft reply to an email message.

Selected tools

No tools selected.

Click "Show all tools" to add tools.

Requirements

Select tools to see requirements

#

Gmail.ChangeEmailLabels

Add and remove labels from an email using the Gmail API.

Parameters

ParameterTypeReq.Description
email_idstringRequiredThe ID of the email to modify labels for
labels_to_addarray<string>RequiredList of label names to add
labels_to_removearray<string>RequiredList of label names to remove

Requirements

No secrets required

Output

Type:jsonConfirmation with labels that were added and removed
#

Gmail.CreateLabel

Create a new label in the user's mailbox.

Parameters

ParameterTypeReq.Description
label_namestringRequiredThe name of the label to create

Requirements

No secrets required

Output

Type:jsonThe created label wrapped in label key
#

Gmail.DeleteDraftEmail

Delete a draft email using the Gmail API.

Parameters

ParameterTypeReq.Description
draft_email_idstringRequiredThe ID of the draft email to delete

Requirements

No secrets required

Output

Type:stringA confirmation message indicating successful deletion
#

Gmail.GetThread

Get the specified thread by ID.

Parameters

ParameterTypeReq.Description
thread_idstringRequiredThe ID of the thread to retrieve

Requirements

No secrets required

Output

Type:jsonA dictionary containing the thread details with dates in descriptive UTC format
#

Gmail.ListDraftEmails

Lists draft emails in the user's draft mailbox using the Gmail API.

Parameters

ParameterTypeReq.Description
n_draftsintegerOptionalNumber of draft emails to read (Min 1, Max 100)

Requirements

No secrets required

Output

Type:jsonA dictionary containing a list of draft email details with dates in descriptive UTC format
#

Gmail.ListEmails

Read emails from a Gmail account and extract plain text content.

Parameters

ParameterTypeReq.Description
n_emailsintegerOptionalNumber of emails to read (Min 1, Max 100)

Requirements

No secrets required

Output

Type:jsonA dictionary containing a list of email details with dates in descriptive UTC format
#

Gmail.ListEmailsByHeader

Search for emails by header using the Gmail API.

Parameters

ParameterTypeReq.Description
senderstringOptionalThe name or email address of the sender of the email
recipientstringOptionalThe name or email address of the recipient
subjectstringOptionalWords to find in the subject of the email
bodystringOptionalWords to find in the body of the email
date_rangestringOptionalThe date range of the email
todayyesterdaylast_7_dayslast_30_daysthis_monthlast_monththis_year
labelstringOptionalThe label name to filter by
max_resultsintegerOptionalThe maximum number of emails to return (Min 1, Max 100

Requirements

No secrets required

Output

Type:jsonA dictionary containing a list of email details with dates in descriptive UTC format
#

Gmail.ListLabels

List all the labels in the user's mailbox.

Parameters

No parameters required.

Requirements

No secrets required

Output

Type:jsonA dictionary containing a list of label details
#

Gmail.ListThreads

List threads in the user's mailbox.

Parameters

ParameterTypeReq.Description
page_tokenstringOptionalPage token to retrieve a specific page of results in the list
max_resultsintegerOptionalThe maximum number of threads to return (Min {MIN_RESULTS}, Max {MAX_RESULTS})
include_spam_trashbooleanOptionalWhether to include spam and trash in the results

Requirements

No secrets required

Output

Type:jsonA dictionary containing a list of thread details
#

Gmail.ReplyToEmail

Send a reply to an email message.

Parameters

ParameterTypeReq.Description
bodystringRequiredThe body of the email
reply_to_message_idstringRequiredThe ID of the message to reply to
reply_to_whomstringOptionalWhether to reply to every recipient (including cc) or only to the original sender. Defaults to 'GmailReplyToWhom.ONLY_THE_SENDER'.
every_recipientonly_the_sender
bccarray<string>OptionalBCC recipients of the email
content_typestringOptionalThe content type of the email body. Defaults to 'plain'
plainhtml

Requirements

No secrets required

Output

Type:jsonA dictionary containing the sent email details with date in descriptive UTC format
#

Gmail.SearchThreads

Search for threads in the user's mailbox

Parameters

ParameterTypeReq.Description
page_tokenstringOptionalPage token to retrieve a specific page of results in the list
max_resultsintegerOptionalThe maximum number of threads to return (Min {MIN_RESULTS}, Max {MAX_RESULTS})
include_spam_trashbooleanOptionalWhether to include spam and trash in the results
label_idsarray<string>OptionalThe IDs of labels to filter by
senderstringOptionalThe name or email address of the sender of the email
recipientstringOptionalThe name or email address of the recipient
subjectstringOptionalWords to find in the subject of the email
bodystringOptionalWords to find in the body of the email
date_rangestringOptionalThe date range of the email
todayyesterdaylast_7_dayslast_30_daysthis_monthlast_monththis_year

Requirements

No secrets required

Output

Type:jsonA dictionary containing a list of thread details
#

Gmail.SendDraftEmail

Send a draft email using the Gmail API.

Parameters

ParameterTypeReq.Description
email_idstringRequiredThe ID of the draft to send

Requirements

No secrets required

Output

Type:jsonA dictionary containing the sent email details with date in descriptive UTC format
#

Gmail.SendEmail

Send an email using the Gmail API.

Parameters

ParameterTypeReq.Description
subjectstringRequiredThe subject of the email
bodystringRequiredThe body of the email
recipientstringRequiredThe recipient of the email
ccarray<string>OptionalCC recipients of the email
bccarray<string>OptionalBCC recipients of the email
content_typestringOptionalThe content type of the email body. Defaults to 'plain'
plainhtml

Requirements

No secrets required

Output

Type:jsonA dictionary containing the sent email details with date in descriptive UTC format
#

Gmail.TrashEmail

Move an email to the trash folder using the Gmail API.

Parameters

ParameterTypeReq.Description
email_idstringRequiredThe ID of the email to trash

Requirements

No secrets required

Output

Type:jsonDetails of the trashed email with URL to view in Gmail trash folder
#

Gmail.UpdateDraftEmail

Update an existing email draft using the Gmail API.

Parameters

ParameterTypeReq.Description
draft_email_idstringRequiredThe ID of the draft email to update.
subjectstringRequiredThe subject of the draft email
bodystringRequiredThe body of the draft email
recipientstringRequiredThe recipient of the draft email
ccarray<string>OptionalCC recipients of the draft email
bccarray<string>OptionalBCC recipients of the draft email

Requirements

No secrets required

Output

Type:jsonA dictionary containing the updated draft email details with date in descriptive UTC format
#

Gmail.WhoAmI

Get comprehensive user profile and Gmail account information. This tool provides detailed information about the authenticated user including their name, email, profile picture, Gmail account statistics, and other important profile details from Google services.

Parameters

No parameters required.

Requirements

No secrets required

Output

Type:jsonGet comprehensive user profile and Gmail account information.
#

Gmail.WriteDraftEmail

Compose a new email draft using the Gmail API.

Parameters

ParameterTypeReq.Description
subjectstringRequiredThe subject of the draft email
bodystringRequiredThe body of the draft email
recipientstringRequiredThe recipient of the draft email
ccarray<string>OptionalCC recipients of the draft email
bccarray<string>OptionalBCC recipients of the draft email
content_typestringOptionalThe content type of the email body. Defaults to 'plain'
plainhtml

Requirements

No secrets required

Output

Type:jsonA dictionary containing the created draft email details with date in descriptive UTC format
#

Gmail.WriteDraftReplyEmail

Compose a draft reply to an email message.

Parameters

ParameterTypeReq.Description
bodystringRequiredThe body of the draft reply email
reply_to_message_idstringRequiredThe Gmail message ID of the message to draft a reply to
reply_to_whomstringOptionalWhether to reply to every recipient (including cc) or only to the original sender. Defaults to 'GmailReplyToWhom.ONLY_THE_SENDER'.
every_recipientonly_the_sender
bccarray<string>OptionalBCC recipients of the draft reply email
content_typestringOptionalThe content type of the email body. Defaults to 'plain'
plainhtml

Requirements

No secrets required

Output

Type:jsonA dictionary containing draft reply email details with dates in descriptive UTC format
Last updated on