保存附件到工作区
mail_save_attachmentSaves a selected email attachment to the workspace for local storage or parsing, using the message UID and attachment index returned by mail_read.
Instructions
把某封邮件的附件落盘到工作区(可用于把助教的 PPT / 作业 PDF 存到本地再解析)。index 来自 mail_read 返回的 attachments 列表。默认存到 _素材/邮箱附件/。
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"uid": "<uid>",
"index": "<index>"
},
"name": "mail_save_attachment"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| uid | Yes | 邮件 uid | |
| index | Yes | 附件序号,来自 mail_read 的 attachments[].index | |
| folder | No | 邮件所在文件夹,默认 INBOX | |
| save_dir | No | 保存目录;相对路径按工作区根目录解析,默认 _素材/邮箱附件 |