दस्तावेज़ पर जाएँ
MCP सर्वर

Drafts

मेलबॉक्स में सहेजे गए बिना भेजे संदेश।

ड्राफ़्ट टूल

टूलयह क्या करता है
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()