Search email and read attachments
The agent retrieves specific email threads and extracts text from attached PDFs or images to answer a query.
How it works
Read-onlyProductivity and planning
The agent uses search_work to locate relevant emails across all connected accounts. It then uses get_thread and get_email_body to read the full conversation. If attachments are mentioned, it uses read_attachment to extract text from PDFs or images, ensuring it only fetches files the user pointed at.
Prompt
Paste this into an agent that has the servers below connected. Adjust the names and dates to your own.
Prompt for Search email and read attachments
Find the last email about the Q3 invoice and tell me what the PDF attachment says.MCP servers it needs
Source
The vendor page this playbook is drawn from, and the passage that supports it.
search_work, list_inbox, get_thread, get_email_body, list_folders, read_attachment Find and read email Searches every account you have connected to alfred_ (Gmail, Outlook, Microsoft 365, IMAP) in one query, then opens a thread in full: every message, who said what, and whether you already…alfred_ MCP | Bring your email and calendar into any AI