Skip to main content
Glama

fetch_email_attachment

Download email attachments from IMAP accounts using email and attachment identifiers. Retrieve files with filename, type, size, and base64 content for processing.

Instructions

Download a specific attachment from an email. Requires the email id and the attachment id (obtained from fetch_email_content). Returns {id, filename, contentType, size, contentBase64} where contentBase64 is the base64-encoded file content.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
idYesThe email identifier from list results.
attachment_idYesThe attachment identifier from fetch_email_content results.
mailboxNoOptional folder hint for faster lookup. If omitted, searches all folders.

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/florianbuetow/imap-mini-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server