m365_create_draft
Microsoft 365 · macOS · Windows
效果: 写入. 状态: 受限可用.
“受限可用”表示工具可能取决于版本、平台、权限、账户或配置,并不表示它在所有安装中都已启用。
macOS
用途
当用户想在其 Microsoft 365 / Outlook 账户中准备一封邮件但不发送时使用:它将草稿保存在该账户的 Drafts 文件夹中,供本人在 Outlook 中查看并发送。绝不会发送任何内容。新邮件需要 subject 和 body(to 和 cc 可选);草稿回复只需要 reply_to_id(来自 m365_list_emails、m365_search_emails 或 m365_read_email 的邮件 ID)和 body——其收件人和主题取自原邮件。先显示预览——设置 confirm=true 才会保存草稿;确认两次会保存两份草稿。不支持附件。需要已连接且具有 Mail.ReadWrite 权限的 Microsoft 365 账户:在此工具出现之前连接的账户,会答复 consent_required,直到重新连接。要立即发送,请使用 m365_send_email 或 m365_reply_email;对于 Mac 邮件应用中的草稿,请使用 create_draft。
必填输入
body
输入名称会严格保持工具要求的形式。下方可展开的架构中保留英文规范技术定义。
权限与确认
架构声明了明确的确认参数。请检查预览,并按此平台的契约授权实际操作。
- 仅使用用户在此平台上授权的应用、账户和资源。请查阅此工具针对平台的说明,以了解其连接和权限要求;本目录不声称需要额外的 OAuth 范围或操作系统授权。
英文规范技术架构 — macOS
{
"properties": {
"account": {
"description": "Which connected Microsoft 365 account to use: its email (UPN), its id from list_m365_accounts, or its display name when unique. Leave it out to use the default account.",
"type": "string"
},
"body": {
"description": "The text of the draft, as plain text. Line breaks are kept.",
"type": "string"
},
"cc": {
"description": "CC email addresses, separated by commas (optional; not with reply_to_id).",
"type": "string"
},
"confirm": {
"description": "Set to true to save the draft (default: shows a preview only). Nothing is sent in either case.",
"type": "boolean"
},
"reply_to_id": {
"description": "Message ID to draft a reply to (from m365_list_emails, m365_search_emails or m365_read_email). Leave it out for a new message.",
"type": "string"
},
"subject": {
"description": "Subject, one line. Required for a new message; not with reply_to_id.",
"type": "string"
},
"to": {
"description": "Recipient email addresses, separated by commas (optional; not with reply_to_id).",
"type": "string"
}
},
"required": [
"body"
],
"type": "object"
}文档示例
m365_create_draft 的文档示例。请勿执行此示例。所示参数属于虚构数据集;在实际调用前,请解析真实标识符并获得授权。
{
"body": "Can we review the launch checklist on Tuesday?",
"confirm": false,
"subject": "Planning meeting",
"to": "alex@example.com"
}Windows
用途
在你的 Microsoft 365 账户的 Drafts 文件夹中创建一封邮件草稿,供你自己查看并发送。它绝不会发送。先显示预览——设置 confirm=true 才会创建草稿;确认两次会创建两份草稿。带 reply_to_id 时,草稿是对该邮件的回复,并保留其收件人和主题(请省略 to、cc 和 subject)。在此工具出现之前连接的账户必须重新连接(connect_m365_account)才能允许草稿。
必填输入
body
输入名称会严格保持工具要求的形式。下方可展开的架构中保留英文规范技术定义。
权限与确认
架构声明了明确的确认参数。请检查预览,并按此平台的契约授权实际操作。
- 仅使用用户在此平台上授权的应用、账户和资源。请查阅此工具针对平台的说明,以了解其连接和权限要求;本目录不声称需要额外的 OAuth 范围或操作系统授权。
英文规范技术架构 — Windows
{
"properties": {
"account": {
"description": "Which connected Microsoft 365 account to use: its email (UPN), its id from list_m365_accounts, or its display name when unique. Leave it out to use the default account.",
"type": "string"
},
"body": {
"description": "The text of the draft, as plain text. Line breaks are kept.",
"type": "string"
},
"cc": {
"description": "CC recipients (optional, comma-separated)",
"type": "string"
},
"confirm": {
"description": "Set to true to create the draft (default: shows preview only)",
"type": "boolean"
},
"reply_to_id": {
"description": "Message ID to draft a reply to (optional)",
"type": "string"
},
"subject": {
"description": "Subject. Required unless reply_to_id is given.",
"type": "string"
},
"to": {
"description": "Recipient email address (comma-separated for multiple). Optional: a draft may have no recipient yet.",
"type": "string"
}
},
"required": [
"body"
],
"type": "object"
}文档示例
m365_create_draft 的文档示例。请勿执行此示例。所示参数属于虚构数据集;在实际调用前,请解析真实标识符并获得授权。
{
"body": "Can we review the launch checklist on Tuesday?",
"confirm": false,
"subject": "Planning meeting",
"to": "alex@example.com"
}