Gmail
Arcade.dev LLM tools for Gmail
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)
| Tool name | Description | Secrets | |
|---|---|---|---|
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
| Parameter | Type | Req. | Description |
|---|---|---|---|
email_id | string | Required | The ID of the email to modify labels for |
labels_to_add | array<string> | Required | List of label names to add |
labels_to_remove | array<string> | Required | List of label names to remove |
Requirements
Output
json— Confirmation with labels that were added and removedGmail.CreateLabel
Create a new label in the user's mailbox.
Parameters
| Parameter | Type | Req. | Description |
|---|---|---|---|
label_name | string | Required | The name of the label to create |
Requirements
Output
json— The created label wrapped in label keyGmail.DeleteDraftEmail
Delete a draft email using the Gmail API.
Parameters
| Parameter | Type | Req. | Description |
|---|---|---|---|
draft_email_id | string | Required | The ID of the draft email to delete |
Requirements
Output
string— A confirmation message indicating successful deletionGmail.GetThread
Get the specified thread by ID.
Parameters
| Parameter | Type | Req. | Description |
|---|---|---|---|
thread_id | string | Required | The ID of the thread to retrieve |
Requirements
Output
json— A dictionary containing the thread details with dates in descriptive UTC formatGmail.ListDraftEmails
Lists draft emails in the user's draft mailbox using the Gmail API.
Parameters
| Parameter | Type | Req. | Description |
|---|---|---|---|
n_drafts | integer | Optional | Number of draft emails to read (Min 1, Max 100) |
Requirements
Output
json— A dictionary containing a list of draft email details with dates in descriptive UTC formatGmail.ListEmails
Read emails from a Gmail account and extract plain text content.
Parameters
| Parameter | Type | Req. | Description |
|---|---|---|---|
n_emails | integer | Optional | Number of emails to read (Min 1, Max 100) |
Requirements
Output
json— A dictionary containing a list of email details with dates in descriptive UTC formatGmail.ListEmailsByHeader
Search for emails by header using the Gmail API.
Parameters
| Parameter | Type | Req. | Description |
|---|---|---|---|
sender | string | Optional | The name or email address of the sender of the email |
recipient | string | Optional | The name or email address of the recipient |
subject | string | Optional | Words to find in the subject of the email |
body | string | Optional | Words to find in the body of the email |
date_range | string | Optional | The date range of the emailtodayyesterdaylast_7_dayslast_30_daysthis_monthlast_monththis_year |
label | string | Optional | The label name to filter by |
max_results | integer | Optional | The maximum number of emails to return (Min 1, Max 100 |
Requirements
Output
json— A dictionary containing a list of email details with dates in descriptive UTC formatGmail.ListLabels
List all the labels in the user's mailbox.
Parameters
No parameters required.
Requirements
Output
json— A dictionary containing a list of label detailsGmail.ListThreads
List threads in the user's mailbox.
Parameters
| Parameter | Type | Req. | Description |
|---|---|---|---|
page_token | string | Optional | Page token to retrieve a specific page of results in the list |
max_results | integer | Optional | The maximum number of threads to return (Min {MIN_RESULTS}, Max {MAX_RESULTS}) |
include_spam_trash | boolean | Optional | Whether to include spam and trash in the results |
Requirements
Output
json— A dictionary containing a list of thread detailsGmail.ReplyToEmail
Send a reply to an email message.
Parameters
| Parameter | Type | Req. | Description |
|---|---|---|---|
body | string | Required | The body of the email |
reply_to_message_id | string | Required | The ID of the message to reply to |
reply_to_whom | string | Optional | Whether to reply to every recipient (including cc) or only to the original sender. Defaults to 'GmailReplyToWhom.ONLY_THE_SENDER'.every_recipientonly_the_sender |
bcc | array<string> | Optional | BCC recipients of the email |
content_type | string | Optional | The content type of the email body. Defaults to 'plain'plainhtml |
Requirements
Output
json— A dictionary containing the sent email details with date in descriptive UTC formatGmail.SearchThreads
Search for threads in the user's mailbox
Parameters
| Parameter | Type | Req. | Description |
|---|---|---|---|
page_token | string | Optional | Page token to retrieve a specific page of results in the list |
max_results | integer | Optional | The maximum number of threads to return (Min {MIN_RESULTS}, Max {MAX_RESULTS}) |
include_spam_trash | boolean | Optional | Whether to include spam and trash in the results |
label_ids | array<string> | Optional | The IDs of labels to filter by |
sender | string | Optional | The name or email address of the sender of the email |
recipient | string | Optional | The name or email address of the recipient |
subject | string | Optional | Words to find in the subject of the email |
body | string | Optional | Words to find in the body of the email |
date_range | string | Optional | The date range of the emailtodayyesterdaylast_7_dayslast_30_daysthis_monthlast_monththis_year |
Requirements
Output
json— A dictionary containing a list of thread detailsGmail.SendDraftEmail
Send a draft email using the Gmail API.
Parameters
| Parameter | Type | Req. | Description |
|---|---|---|---|
email_id | string | Required | The ID of the draft to send |
Requirements
Output
json— A dictionary containing the sent email details with date in descriptive UTC formatGmail.SendEmail
Send an email using the Gmail API.
Parameters
| Parameter | Type | Req. | Description |
|---|---|---|---|
subject | string | Required | The subject of the email |
body | string | Required | The body of the email |
recipient | string | Required | The recipient of the email |
cc | array<string> | Optional | CC recipients of the email |
bcc | array<string> | Optional | BCC recipients of the email |
content_type | string | Optional | The content type of the email body. Defaults to 'plain'plainhtml |
Requirements
Output
json— A dictionary containing the sent email details with date in descriptive UTC formatGmail.TrashEmail
Move an email to the trash folder using the Gmail API.
Parameters
| Parameter | Type | Req. | Description |
|---|---|---|---|
email_id | string | Required | The ID of the email to trash |
Requirements
Output
json— Details of the trashed email with URL to view in Gmail trash folderGmail.UpdateDraftEmail
Update an existing email draft using the Gmail API.
Parameters
| Parameter | Type | Req. | Description |
|---|---|---|---|
draft_email_id | string | Required | The ID of the draft email to update. |
subject | string | Required | The subject of the draft email |
body | string | Required | The body of the draft email |
recipient | string | Required | The recipient of the draft email |
cc | array<string> | Optional | CC recipients of the draft email |
bcc | array<string> | Optional | BCC recipients of the draft email |
Requirements
Output
json— A dictionary containing the updated draft email details with date in descriptive UTC formatGmail.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
Output
json— Get comprehensive user profile and Gmail account information.Gmail.WriteDraftEmail
Compose a new email draft using the Gmail API.
Parameters
| Parameter | Type | Req. | Description |
|---|---|---|---|
subject | string | Required | The subject of the draft email |
body | string | Required | The body of the draft email |
recipient | string | Required | The recipient of the draft email |
cc | array<string> | Optional | CC recipients of the draft email |
bcc | array<string> | Optional | BCC recipients of the draft email |
content_type | string | Optional | The content type of the email body. Defaults to 'plain'plainhtml |
Requirements
Output
json— A dictionary containing the created draft email details with date in descriptive UTC formatGmail.WriteDraftReplyEmail
Compose a draft reply to an email message.
Parameters
| Parameter | Type | Req. | Description |
|---|---|---|---|
body | string | Required | The body of the draft reply email |
reply_to_message_id | string | Required | The Gmail message ID of the message to draft a reply to |
reply_to_whom | string | Optional | Whether to reply to every recipient (including cc) or only to the original sender. Defaults to 'GmailReplyToWhom.ONLY_THE_SENDER'.every_recipientonly_the_sender |
bcc | array<string> | Optional | BCC recipients of the draft reply email |
content_type | string | Optional | The content type of the email body. Defaults to 'plain'plainhtml |
Requirements
Output
json— A dictionary containing draft reply email details with dates in descriptive UTC format