attachment
List or download email files by message ID. Set an output directory to save them, or omit to see available files.
Instructions
List or download attachments from an email. Lists attachments if no output directory is set; downloads to directory if output is set.
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": "attachment"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Message ID of the email | |
| output_dir | No | Directory path to download attachments to (omit to just list attachments) |