Connect to Gmail to read, send, and manage emails.
| Action | Description | Parameters | Returns |
|---|---|---|---|
batch_delete ⚠ | Batch delete messages permanently | email_ids | NoneType |
batch_modify | Batch modify labels on multiple emails | email_ids [add_labels, remove_labels] | NoneType |
create_draft | Create a draft email | to, subject, body [cc] | DraftId |
create_label | Create a new label | name [label_color] | Label |
delete_draft ⚠ | Delete a draft | draft_id | NoneType |
delete_email ⚠ | Delete an email | email_id | NoneType |
delete_label ⚠ | Delete a label | label_id | NoneType |
delete_thread ⚠ | Permanently delete a thread | thread_id | NoneType |
get_attachment | Download an email attachment | email_id, attachment_id | Attachment |
get_draft | Get a single draft by ID | draft_id [format] | Draft |
get_email | Get a single email by ID | email_id [format] | Email |
get_label | Get a single label by ID | label_id | Label |
get_profile | Get user profile | — | UserProfile |
get_thread | Get a single thread by ID | thread_id [format] | Thread |
get_vacation_settings | Get vacation auto-reply settings | — | VacationSettings |
import_message ⚠ | Import an email message into the mailbox | raw_rfc2822 [label_ids, internal_date_source] | MessageId |
insert_message ⚠ | Insert an email message directly into the mailbox | raw_rfc2822 [label_ids, internal_date_source] | MessageId |
list_drafts | List drafts | [limit, page_token] | PaginatedList[Draft] |
list_emails | List emails matching a query | [query, limit, labels, page_token] | PaginatedList[Email] |
list_history | List mailbox history | start_history_id [label_id, history_types, limit, page_token] | PaginatedList[HistoryRecord] |
list_labels | List all labels | — | list |
list_threads | List email threads | [query, limit, page_token] | PaginatedList[Thread] |
mark_as_read | Mark an email as read | email_id | Email |
mark_as_unread | Mark an email as unread | email_id | Email |
modify_labels | Modify email labels | email_id [add_labels, remove_labels] | Email |
modify_thread | Modify thread labels | thread_id [add_labels, remove_labels] | Thread |
search_emails | Search emails with advanced query | query [limit, page_token] | PaginatedList[Email] |
send_draft ⚠ | Send a draft | draft_id | MessageId |
send_email ⚠ | Send an email | to, subject, body [cc, bcc, reply_to] | MessageId |
star_email | Star an email | email_id | Email |
trash_email | Move an email to trash | email_id | Email |
trash_thread | Move a thread to trash | thread_id | Thread |
unstar_email | Remove star from an email | email_id | Email |
untrash_email | Remove an email from trash | email_id | Email |
untrash_thread | Remove a thread from trash | thread_id | Thread |
update_draft | Update a draft | draft_id, to, subject, body [cc] | Draft |
update_label | Update a label | label_id [name, label_color] | Label |
update_vacation_settings ⚠ | Update vacation auto-reply settings | enable [response_subject, response_body, start_time, end_time] | VacationSettings |
Full schema explorer, code generation, and live API testing