发送邮件
mail_sendSends an email immediately through the school SMTP server to specified recipients, with optional CC, BCC, HTML body, and attachments. Use only when the user explicitly asks to send, since the message is delivered right away.
Instructions
通过学校 SMTP 直接发送邮件(会真的发出去)。除非用户明确要求发送,否则优先用 mail_draft 存草稿让用户过目。
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": {
"to": "<to>",
"subject": "<subject>",
"body": "<body>"
},
"name": "mail_send"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cc | No | 抄送 | |
| to | Yes | 收件人,多个用逗号分隔 | |
| bcc | No | 密送 | |
| body | Yes | 正文(纯文本) | |
| html | No | HTML 正文(可选) | |
| subject | Yes | 主题 | |
| attachments | No | 附件数组。写法一:["D:\\a\\b.pdf"];写法二给显示名:["报告.pdf=D:\\a\\b.pdf"];写法三对象:{path:"D:\\a\\b.pdf", filename:"报告.pdf"}。相对路径按工作区解析。单个上限 20 MB,合计 25 MB。 | |
| save_to_sent | No | 是否再往「已发送」里补一份(学校 SMTP 通常自动存),默认 false |