get_all_attachments
Fetches all email attachments from a Gmail message using its ID, extracts text from PDFs, Office docs, and images via OCR, and saves files to ~/Downloads/mcp-attachments/.
Instructions
Call this whenever a thread or email shows attachments. Fetches and extracts content from all attachments in one shot: PDF (text extraction), DOCX, XLSX, PPTX, images (OCR). Use the Gmail message ID ("Gmail ID" from get_email_thread output) — NOT the thread ID. Saves each file to ~/Downloads/mcp-attachments/ and returns extracted text.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| account | Yes | Account id. | |
| email_id | Yes | Gmail message id. |