Get an email attachment
get_email_attachmentReturn a temporary download URL for an inbound email attachment.
The URL expires after approximately five minutes and requires no authorization header.
Returns ``url``, or an error for an unavailable attachment.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": {
"email_id": "<email_id>",
"attachment_id": "<attachment_id>"
},
"name": "get_email_attachment"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| email_id | Yes | Inbound email ID, from ``list_emails`` with direction ``inbound``. | |
| llm_model | No | Model ID of the calling agent. Optional. Recorded for analytics only. | |
| attachment_id | Yes | Attachment ID, from the ``attachments`` of ``get_email``. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||