ReadEmail
Reads the full content of a specific email message. You must own the message’s mailbox. Inputsstring
required
The UUID of the message to read.
string
Response format for message content. Options:
text, html, html2text. Defaults to "html2text".html2text— HTML converted to clean readable text preserving links and structure. Recommended for AI agents (minimal tokens, preserves structure).text— original plain text part.html— both plain text and full HTML content.
string
The message UUID.
string
Email subject line.
string
Sender address.
array
List of recipient addresses.
array
List of CC addresses.
string
ISO 8601 timestamp of when the email was sent.
string
Message body in the requested format. When using
html format, html_content is also included.string
The conversation thread this message belongs to.
integer
Total number of messages in the thread. When greater than
1, call ReadThread to see the full conversation.boolean
Whether the message has any attachments.
integer
Number of attachments on the message.
array
List of attachment metadata. Each item includes
id, filename, mime_type, and size. Use the id with DownloadAttachment to retrieve file content.WaitForEmail
Waits for a new email to arrive in a mailbox, streaming progress notifications while waiting. Only detects emails that arrive after the tool is called. Inputsstring
required
The mailbox email address to wait for.
integer
Maximum number of seconds to wait. Must be between 5 and 120. Defaults to
30.string
Response format for message content. Options:
text, html, html2text. Defaults to "html2text".string
Always
"received" when an email arrived within the timeout period.string
The message UUID.
string
Email subject line.
string
Sender address.
array
List of recipient addresses.
array
List of CC addresses.
string
ISO 8601 timestamp of when the email was sent.
string
Message body in the requested format.
string
The conversation thread this message belongs to. Call
ReadThread to see the full conversation context.boolean
Whether the message has any attachments.
integer
Number of attachments on the message.
string
Always
"timeout" when no email arrived within the timeout period.string
The email address that was monitored.
integer
Number of seconds the tool waited before timing out.
string
A human-readable description of the timeout.
The tool streams
notifications/progress events every 2 seconds so your agent receives confirmation it is still running. If you need to wait longer than 120 seconds, call WaitForEmail again after it returns.DeleteEmail
Deletes a specific email message. You must own the message’s mailbox. Inputsstring
required
The UUID of the message to delete.
boolean
Always
true when the message was successfully deleted.string
The UUID of the deleted message.
DownloadAttachment
Downloads a specific email attachment and returns its content as base64. You must own the attachment’s mailbox. Inputsstring
required
The UUID of the attachment to download. Obtain attachment IDs from the
attachments array in a ReadEmail response.string
The attachment UUID.
string
Original filename of the attachment.
string
MIME type of the attachment (e.g.,
"application/pdf").integer
File size in bytes.
string
Base64-encoded file content.
Attachments larger than 10 MB return an error. Download large files directly from the AgentPost web interface instead.
SendEmail
Sends an outbound email from a mailbox on a verified custom domain. The message is queued for delivery asynchronously. Inputsstring
required
The full email address of the sending mailbox (e.g.,
"sales@example.com"). The mailbox must exist on a verified custom domain you own.string[]
required
Array of recipient email addresses.
string
required
Email subject line. Maximum 998 characters.
string
required
Plain text body of the email.
string
HTML body for multipart emails. When provided, recipients see HTML with the plain text
body as a fallback.string
Message-ID of the email you are replying to. Threads the outbound message as a reply in the recipient’s email client.
array
Array of attachment objects to include with the email. Maximum 20 attachments per message. Each object must include:
filename(string) — the file name (e.g.,"report.pdf")mime_type(string) — MIME type (e.g.,"application/pdf")content_base64(string) — base64-encoded file content
CC and BCC are not currently supported. Only direct recipients via the
to field are accepted.string
Unique identifier for the queued message.
string
Always
"queued" when the message was accepted for delivery.integer
Number of attachments included with the message.