save_attachment
Save an email attachment to its local path by specifying account, mailbox, UID, and attachment ID.
Instructions
Save one attachment; saved_path is its absolute native-platform location.
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": {
"account_id": "<account_id>",
"mailbox": "<mailbox>",
"uid_validity": "<uid_validity>",
"uid": "<uid>",
"attachment_id": "<attachment_id>"
},
"name": "save_attachment"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| uid | Yes | ||
| mailbox | Yes | ||
| account_id | Yes | ||
| uid_validity | Yes | ||
| attachment_id | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| size | Yes | ||
| sha256 | Yes | ||
| saved_name | Yes | ||
| saved_path | No | ||
| content_type | Yes | ||
| original_name | Yes |