Skip to content

Commit 0a2fce2

Browse files
author
camel-docs-bot
committed
Auto-update documentation after merge [skip ci]
1 parent f34f263 commit 0a2fce2

File tree

1 file changed

+17
-26
lines changed

1 file changed

+17
-26
lines changed

docs/mintlify/reference/camel.toolkits.gmail_toolkit.mdx

Lines changed: 17 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ Reply to an email message.
100100

101101
**Parameters:**
102102

103-
- **message_id** (str): The ID of the message to reply to (found in send_email/list_drafts results or users.messages.get).
103+
- **message_id** (str): The unique identifier of the message to reply to. To get a message ID, first use fetch_emails() to list messages, or use the 'message_id' returned from send_email() or create_email_draft().
104104
- **reply_body** (str): The reply message body.
105105
- **reply_all** (bool): Whether to reply to all recipients.
106106
- **is_html** (bool): Whether the body is HTML format. Set to True when sending formatted emails with HTML tags (e.g., bold, links, images). Use False (default) for plain text emails.
@@ -130,9 +130,9 @@ Forward an email message.
130130

131131
**Parameters:**
132132

133-
- **message_id** (str): The ID of the message to forward (found in send_email/list_drafts results or users.messages.get).
133+
- **message_id** (str): The unique identifier of the message to forward. To get a message ID, first use fetch_emails() to list messages, or use the 'message_id' returned from send_email() or create_email_draft().
134134
- **to** (Union[str, List[str]]): Recipient email address(es).
135-
- **forward_body** (Optional[str]): Additional message to include.
135+
- **forward_body** (Optional[str]): Additional message to include at the top of the forwarded email, before the original message content. If not provided, only the original message will be forwarded.
136136
- **cc** (Optional[Union[str, List[str]]]): CC recipient email address(es).
137137
- **bcc** (Optional[Union[str, List[str]]]): BCC recipient email address(es).
138138
- **include_attachments** (bool): Whether to include original attachments. Defaults to True. Only includes real attachments, not inline images.
@@ -188,7 +188,7 @@ Send a draft email.
188188

189189
**Parameters:**
190190

191-
- **draft_id** (str): The ID of the draft to send.
191+
- **draft_id** (str): The unique identifier of the draft to send. To get a draft ID, first use list_drafts() to list drafts, or use the 'draft_id' returned from create_email_draft().
192192

193193
**Returns:**
194194

@@ -214,11 +214,7 @@ Fetch emails with filters and pagination.
214214

215215
**Parameters:**
216216

217-
- **query** (str): Gmail search query string.
218-
- **max_results** (int): Maximum number of emails to fetch.
219-
- **include_spam_trash** (bool): Whether to include spam and trash.
220-
- **label_ids** (Optional[List[str]]): List of label IDs to filter emails by. Only emails with ALL of the specified labels will be returned. Label IDs can be: - System labels: 'INBOX', 'SENT', 'DRAFT', 'SPAM', 'TRASH', 'UNREAD', 'STARRED', 'IMPORTANT', 'CATEGORY_PERSONAL', etc. - Custom label IDs: Retrieved from list_gmail_labels() method.
221-
- **page_token** (Optional[str]): Pagination token from a previous response. If provided, fetches the next page of results.
217+
- **query** (str): Gmail search query string. Use Gmail's search syntax: - 'from:[email protected]' - emails from specific sender - 'subject:meeting' - emails with specific subject text - 'has:attachment' - emails with attachments - 'is:unread' - unread emails - 'in:sent' - emails in sent folder - 'after:2024/01/01 before:2024/12/31' - date range
222218

223219
**Returns:**
224220

@@ -236,7 +232,7 @@ Fetch a thread by ID.
236232

237233
**Parameters:**
238234

239-
- **thread_id** (str): The ID of the thread to fetch.
235+
- **thread_id** (str): The unique identifier of the thread to fetch. To get a thread ID, first use list_threads() to list threads, or use the 'thread_id' returned from send_email() or reply_to_email().
240236

241237
**Returns:**
242238

@@ -259,7 +255,7 @@ Modify labels on an email message.
259255

260256
**Parameters:**
261257

262-
- **message_id** (str): The ID of the message to modify (found in send_email/list_drafts results or users.messages.get).
258+
- **message_id** (str): The unique identifier of the message to modify. To get a message ID, first use fetch_emails() to list messages, or use the 'message_id' returned from send_email() or create_email_draft().
263259
- **add_labels** (Optional[List[str]]): List of label IDs to add to the message. Label IDs can be: - System labels: 'INBOX', 'STARRED', 'IMPORTANT', 'UNREAD', etc. - Custom label IDs: Retrieved from list_gmail_labels() method.
264260

265261
**Returns:**
@@ -279,7 +275,7 @@ Move a message to trash.
279275

280276
**Parameters:**
281277

282-
- **message_id** (str): The ID of the message to move to trash (found in send_email/list_drafts results or users.messages.get).
278+
- **message_id** (str): The unique identifier of the message to move to trash. To get a message ID, first use fetch_emails() to list messages, or use the 'message_id' returned from send_email() or create_email_draft().
283279

284280
**Returns:**
285281

@@ -303,9 +299,9 @@ Get an attachment from a message.
303299

304300
**Parameters:**
305301

306-
- **message_id** (str): The ID of the message containing the attachment (found in send_email/list_drafts results or users.messages.get).
307-
- **attachment_id** (str): The ID of the attachment.
308-
- **save_path** (Optional[str]): Path to save the attachment file.
302+
- **message_id** (str): The unique identifier of the message containing the attachment. To get a message ID, first use fetch_emails() to list messages, or use the 'message_id' returned from send_email() or create_email_draft().
303+
- **attachment_id** (str): The unique identifier of the attachment to download. To get an attachment ID, first use fetch_emails() to get message details, then look for 'attachment_id' in the 'attachments' list of each message.
304+
- **save_path** (Optional[str]): Local file path where the attachment should be saved. If provided, the attachment will be saved to this location and the response will include a success message. If not provided, the attachment data will be returned as base64-encoded content in the response.
309305

310306
**Returns:**
311307

@@ -331,11 +327,7 @@ List email threads.
331327

332328
**Parameters:**
333329

334-
- **query** (str): Gmail search query string.
335-
- **max_results** (int): Maximum number of threads to fetch.
336-
- **include_spam_trash** (bool): Whether to include spam and trash.
337-
- **label_ids** (Optional[List[str]]): List of label IDs to filter threads by. Only threads with ALL of the specified labels will be returned. Label IDs can be: - System labels: 'INBOX', 'SENT', 'DRAFT', 'SPAM', 'TRASH', 'UNREAD', 'STARRED', 'IMPORTANT', 'CATEGORY_PERSONAL', etc. - Custom label IDs: Retrieved from list_gmail_labels() method.
338-
- **page_token** (Optional[str]): Pagination token from a previous response. If provided, fetches the next page of results.
330+
- **query** (str): Gmail search query string. Use Gmail's search syntax: - 'from:[email protected]' - threads from specific sender - 'subject:meeting' - threads with specific subject text - 'has:attachment' - threads with attachments - 'is:unread' - unread threads - 'in:sent' - threads in sent folder - 'after:2024/01/01 before:2024/12/31' - date range
339331

340332
**Returns:**
341333

@@ -390,8 +382,8 @@ Create a new Gmail label.
390382
**Parameters:**
391383

392384
- **name** (str): The name of the label to create.
393-
- **label_list_visibility** (str): Label visibility in label list.
394-
- **message_list_visibility** (str): Label visibility in message list.
385+
- **label_list_visibility** (str): How the label appears in Gmail's label list. - 'labelShow': Label is visible in the label list sidebar (default) - 'labelHide': Label is hidden from the label list sidebar
386+
- **message_list_visibility** (str): How the label appears in message lists. - 'show': Label is visible on messages in inbox/lists (default) - 'hide': Label is hidden from message displays
395387

396388
**Returns:**
397389

@@ -410,7 +402,7 @@ Delete a Gmail label.
410402

411403
**Parameters:**
412404

413-
- **label_id** (str): The ID of the user-created label to delete. Retrieve the label ID from `list_gmail_labels()`.
405+
- **label_id** (str): The unique identifier of the user-created label to delete. To get a label ID, first use list_gmail_labels() to list all labels. Note: System labels (e.g., 'INBOX', 'SENT', 'DRAFT', 'SPAM', 'TRASH', 'UNREAD', 'STARRED', 'IMPORTANT', 'CATEGORY_PERSONAL', etc.) cannot be deleted.
414406

415407
**Returns:**
416408

@@ -434,7 +426,7 @@ Modify labels on a thread.
434426

435427
**Parameters:**
436428

437-
- **thread_id** (str): The ID of the thread to modify.
429+
- **thread_id** (str): The unique identifier of the thread to modify. To get a thread ID, first use list_threads() to list threads, or use the 'thread_id' returned from send_email() or reply_to_email().
438430
- **add_labels** (Optional[List[str]]): List of label IDs to add to all messages in the thread. Label IDs can be: - System labels: 'INBOX', 'STARRED', 'IMPORTANT', 'UNREAD', etc. - Custom label IDs: Retrieved from list_gmail_labels().
439431

440432
**Returns:**
@@ -485,8 +477,7 @@ Search for people in contacts.
485477

486478
**Parameters:**
487479

488-
- **query** (str): Search query for people.
489-
- **max_results** (int): Maximum number of results to fetch.
480+
- **query** (str): Search query for people in contacts. Can search by: - Name: 'John Smith' or partial names like 'John' - Email: '[email protected]' - Organization: 'Google' or 'Acme Corp' - Phone number: '+1234567890'
490481

491482
**Returns:**
492483

0 commit comments

Comments
 (0)