get_attachment_content
Read an email attachment as an embedded binary resource without writing a local file. Requires enable_attachment_content=true for direct transfer.
Instructions
Read one email attachment as an MCP embedded binary resource without writing a local file. This independent transfer mode requires enable_attachment_content=true.
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_name": "<account_name>",
"email_id": "<email_id>",
"attachment_name": "<attachment_name>"
},
"name": "get_attachment_content"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mailbox | No | The mailbox containing the email. | INBOX |
| email_id | Yes | The email ID obtained from list_emails_metadata or get_emails_content. | |
| account_name | Yes | The name of the email account. | |
| attachment_name | Yes | The attachment filename shown in the message's attachments list. |