Get a download link for one attachment
get_attachmentReturns a short-lived download link for one attachment, so you can save the file with your own tools (for example curl -L -o <safeFilename> <downloadUrl>, using the safeFilename field) instead of carrying it through the conversation. Files under 32 KB also come back inline as base64. The link works for about 15 minutes and reaches only this one attachment, but anyone holding it can use it in that window, so treat it as a secret and do not paste it anywhere public. Files over 50 MB, and files the mail server reports no size for, are not served: open those in the mail app. Use the partId from a message's attachments array (returned by list_messages / get_message).
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": {
"inboxId": "<inboxId>",
"messageId": "<messageId>",
"partId": "<partId>"
},
"name": "get_attachment"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| partId | Yes | ||
| inboxId | Yes | ||
| messageId | Yes |