get_attachments
Save email attachments to a local folder and return their file paths without inlining content; select all, by index, or by filename keyword.
Instructions
把邮件附件保存到本地并返回路径列表(附件内容绝不内联进响应)。 attachment 留空=全部;可传序号(1 起)或文件名关键词。save_dir 留空默认 ~/Downloads/email-mcp/<账户>/。
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": {
"id": "<id>"
},
"name": "get_attachments"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | ||
| save_dir | No | ||
| attachment | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |