Gmail
Communication

Gmail Connector

Connect to Gmail to read, send, and manage emails.

$pip install "toolsconnector[gmail]"
38
Actions
Communication
Category
Free
Apache 2.0

All 38 Actions

Action Description Parameters Returns
batch_delete ⚠Batch delete messages permanentlyemail_idsNoneType
batch_modifyBatch modify labels on multiple emailsemail_ids  [add_labels, remove_labels]NoneType
create_draftCreate a draft emailto, subject, body  [cc]DraftId
create_labelCreate a new labelname  [label_color]Label
delete_draft ⚠Delete a draftdraft_idNoneType
delete_email ⚠Delete an emailemail_idNoneType
delete_label ⚠Delete a labellabel_idNoneType
delete_thread ⚠Permanently delete a threadthread_idNoneType
get_attachmentDownload an email attachmentemail_id, attachment_idAttachment
get_draftGet a single draft by IDdraft_id  [format]Draft
get_emailGet a single email by IDemail_id  [format]Email
get_labelGet a single label by IDlabel_idLabel
get_profileGet user profileUserProfile
get_threadGet a single thread by IDthread_id  [format]Thread
get_vacation_settingsGet vacation auto-reply settingsVacationSettings
import_message ⚠Import an email message into the mailboxraw_rfc2822  [label_ids, internal_date_source]MessageId
insert_message ⚠Insert an email message directly into the mailboxraw_rfc2822  [label_ids, internal_date_source]MessageId
list_draftsList drafts[limit, page_token]PaginatedList[Draft]
list_emailsList emails matching a query[query, limit, labels, page_token]PaginatedList[Email]
list_historyList mailbox historystart_history_id  [label_id, history_types, limit, page_token]PaginatedList[HistoryRecord]
list_labelsList all labelslist
list_threadsList email threads[query, limit, page_token]PaginatedList[Thread]
mark_as_readMark an email as reademail_idEmail
mark_as_unreadMark an email as unreademail_idEmail
modify_labelsModify email labelsemail_id  [add_labels, remove_labels]Email
modify_threadModify thread labelsthread_id  [add_labels, remove_labels]Thread
search_emailsSearch emails with advanced queryquery  [limit, page_token]PaginatedList[Email]
send_draft ⚠Send a draftdraft_idMessageId
send_email ⚠Send an emailto, subject, body  [cc, bcc, reply_to]MessageId
star_emailStar an emailemail_idEmail
trash_emailMove an email to trashemail_idEmail
trash_threadMove a thread to trashthread_idThread
unstar_emailRemove star from an emailemail_idEmail
untrash_emailRemove an email from trashemail_idEmail
untrash_threadRemove a thread from trashthread_idThread
update_draftUpdate a draftdraft_id, to, subject, body  [cc]Draft
update_labelUpdate a labellabel_id  [name, label_color]Label
update_vacation_settings ⚠Update vacation auto-reply settingsenable  [response_subject, response_body, start_time, end_time]VacationSettings
Open Interactive Docs & Playground →

Full schema explorer, code generation, and live API testing