download_attachment
Save a single email attachment to disk for local access. Specify the message UID and attachment index to retrieve the file, which is stored in ~/Downloads/uth-mail/ unless another directory is set.
Instructions
Save one attachment of a message; index is its number in get_message.
Saves under ~/Downloads/uth-mail/ unless a destination directory is given,
and returns the local file path.
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": "download_attachment"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| uid | Yes | ||
| index | Yes | ||
| folder | No | inbox | |
| destination | No |