m365_save_attachment
Microsoft 365 · Windows
效果: 写入. 状态: 受限可用.
“受限可用”表示工具可能取决于版本、平台、权限、账户或配置,并不表示它在所有安装中都已启用。
Windows
用途
将 Microsoft 365 邮件的附件保存到文件夹:全部保存,或按 attachment_id 保存其中一个(即 m365_read_email 列出的 id)。如果附件会替换同名文件,LMCP 会先保留该文件的副本(在其备份文件夹中),回答会说明位置。附加的 Outlook 项目或指向云文件的链接不是文件:不会被保存,回答会说明这一点。对于经典版 Outlook,请使用 outlook_save_attachment。
必填输入
idpath
输入名称会严格保持工具要求的形式。下方可展开的架构中保留英文规范技术定义。
权限与确认
架构声明了明确的确认参数。请检查预览,并按此平台的契约授权实际操作。
- 仅使用用户在此平台上授权的应用、账户和资源。请查阅此工具针对平台的说明,以了解其连接和权限要求;本目录不声称需要额外的 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"
},
"attachment_id": {
"description": "Save only this attachment (an id m365_read_email lists). Omit it to save all of them.",
"type": "string"
},
"confirm": {
"description": "Ignored; kept for older clients.",
"type": "boolean"
},
"id": {
"description": "The email message ID from m365_list_emails, m365_search_emails or m365_read_email",
"type": "string"
},
"path": {
"description": "Folder to save the attachments to",
"type": "string"
}
},
"required": [
"id",
"path"
],
"type": "object"
}文档示例
m365_save_attachment 的文档示例。请勿执行此示例。所示参数属于虚构数据集;在实际调用前,请解析真实标识符并获得授权。
{
"confirm": false,
"id": "demo-item-001",
"path": "C:\\Users\\demo\\Documents\\Attachments"
}