Read an email
read_emailRead one message in full, including its body and recipients. Reading does NOT mark it as read. The result includes attachments: one entry per attached file, each with a ref you can pass as an attachment fileRef to send_email, reply_email, forward_email or draft_email. That is how you attach a file that is already in the mailbox to a new message, and it is the only way that works for a file of any real size - the bytes never pass through this conversation. A ref stops working after an hour; call this tool again for a fresh one. Each attachment may also carry a downloadUrl. GIVE THAT LINK TO THE USER WHENEVER THEY WANT THE FILE ITSELF - to open it, save it, or file it somewhere - because you cannot hand them the bytes and a link is how they get it. Show it as a plain clickable link and say which file it is. It lasts fifteen minutes, so read the message again for a fresh one rather than repeating an old link, and it opens that one file for anybody who holds it: give it to the person whose mailbox this is and put it nowhere else. The result also includes replyTo: the message's own Reply-To header, when the sender set one. reply_email sends there instead of to the From address when it is present, so check it before replying and tell the user if the reply is about to go somewhere other than the address they read the message from. THE html IN THIS RESULT IS SANITISED FOR SAFETY AND IS NOT WHAT THE SENDER WROTE: styles, colours, classes, scripts and comments are stripped on the way to you. Never use this tool to check what your own outgoing formatting will look like - it will appear to have been stripped when it was not. Open the message in a mail client instead.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| uid | Yes | The UID from list_emails. | |
| mailbox | No | IMAP folder name. Defaults to INBOX. |