پرش به مستندات
سرور MCP

پیش‌نویس‌ها

پیام‌های فرستاده‌نشده‌ای که در صندوق پستی ذخیره شده‌اند.

ابزارهای پیش‌نویس‌ها

ابزارچه می‌کند
listDraftsپیش‌نویس‌ها، تازه‌ترین ذخیره‌شده‌ها در ابتدا، هر کدام با موضوع، گیرندگان و فرستنده‌اش. query در آن‌ها جست‌وجو می‌کند.
getDraftیک پیش‌نویس به‌طور کامل: فرستنده، گیرندگان، موضوع، رشته‌ای که به آن پاسخ می‌دهد، پیوست‌ها و متنش.
createDraftیک پیش‌نویس تازه را بدون فرستادن ذخیره کنید. همهٔ فیلدها اختیاری‌اند، و threadId آن را به یک پاسخ تبدیل می‌کند.
updateDraftفیلدهای یک پیش‌نویس را تغییر دهید. فیلدی که جا بگذارید مقدارش را نگه می‌دارد، و یک فهرست، فهرست ذخیره‌شده را به‌طور کامل جایگزین می‌کند.
deleteDraftیک پیش‌نویس را برای همیشه حذف کنید. به سطل زباله نمی‌رود.

خواندن به «خواندن پیش‌نویس‌ها» (drafts:read) نیاز دارد و ذخیره، تغییر یا حذف به «ساختن و ویرایش پیش‌نویس‌ها» (drafts:write). کلاینتی که به برخی نشانی‌ها محدود است فقط پیش‌نویس‌های همان نشانی‌ها را می‌بیند، و پیش‌نویسی که ذخیره می‌کند به یک from نیاز دارد که کلاینت اجازه دارد با آن بفرستد.

در گفت‌وگوی برنامه، ذخیره، تغییر و حذف یک پیش‌نویس اول می‌پرسند مگر آنکه خودتان خواسته باشید.

مرجع

listDrafts

محدوده‌های دسترسیdrafts:readدستیار برنامه آن را بدون پرسیدن اجرا می‌کندجعبه‌ابزارdrafts

The unsent drafts in the mailbox, most recently saved first, each with its id, subject, recipients and sender. query searches the subject, the sender and the start of the body. When more follow, the last line gives a pageToken: call again with the same query and that pageToken.

ورودی‌ها

querystring
limitinteger
دست‌کم 1حداکثر 100
pageTokenstring

همچنین در دسترس در

API
GET /drafts
SDK
drafts.list()drafts.listAll()drafts.iterate()

getDraft

محدوده‌های دسترسیdrafts:readدستیار برنامه آن را بدون پرسیدن اجرا می‌کندجعبه‌ابزارdrafts

One draft in full: its sender, recipients, subject, the thread it replies to, the names of its attachments and its body as saved. Take the id from listDrafts.

ورودی‌ها

draftIdstringالزامی
خالی نباشد

همچنین در دسترس در

API
GET /drafts/{id}
SDK
drafts.get()

createDraft

محدوده‌های دسترسیdrafts:writeدستیار برنامه اول می‌پرسد، مگر آنکه خودتان آن را خواسته باشیدجعبه‌ابزارdrafts

Save a new draft without sending it, as the composer does when you close it. Every field is optional, and html wins over text when both are given. from is the address it will be sent as, and threadId makes it a reply to that thread. sendEmail with the draft id sends it later.

ورودی‌ها

tostring[]
ccstring[]
bccstring[]
subjectstring
تا 998 نویسه
htmlstring
تا 1000000 نویسه
textstring
تا 1000000 نویسه
fromstring
threadIdstring

همچنین در دسترس در

API
PATCH /drafts/{id}POST /drafts
SDK
drafts.update()drafts.create()

updateDraft

محدوده‌های دسترسیdrafts:writeدستیار برنامه اول می‌پرسد، مگر آنکه خودتان آن را خواسته باشیدجعبه‌ابزارdrafts

Change fields on a saved draft. A field you leave out keeps its value, and a list you give replaces the saved one whole, so to with one address drops the others. from null clears the sender. Take the id from listDrafts.

ورودی‌ها

draftIdstringالزامی
خالی نباشد
tostring[]
ccstring[]
bccstring[]
subjectstring
تا 998 نویسه
htmlstring
تا 1000000 نویسه
textstring
تا 1000000 نویسه
fromstring
می‌تواند null باشد
threadIdstring

همچنین در دسترس در

API
PATCH /drafts/{id}POST /drafts
SDK
drafts.update()drafts.create()

deleteDraft

محدوده‌های دسترسیdrafts:writeدستیار برنامه اول می‌پرسد، مگر آنکه خودتان آن را خواسته باشیدجعبه‌ابزارdrafts

Delete a draft for good. It does not go to the Bin and cannot be brought back. Take the id from listDrafts.

ورودی‌ها

draftIdstringالزامی
خالی نباشد

همچنین در دسترس در

API
DELETE /drafts/{id}
SDK
drafts.delete()