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.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"account": "<account>",
"email_id": "<email_id>"
},
"name": "get_all_attachments"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| account | Yes | Account id. | |
| email_id | Yes | Gmail message id. |