Read Email Attachment
read_email_attachmentDownload Outlook attachments via Microsoft Graph and parse PDFs, Office files, images, archives, MSG, and text locally to extract readable content.
Instructions
Download an Outlook attachment directly from Microsoft Graph and parse it locally. Supports PDF, OCR-scanned PDF, Word, PowerPoint, Excel, images, archives, MSG, and plain text. Large image previews are automatically downscaled to fit MCP payload limits.
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": {
"messageId": "<messageId>",
"attachmentId": "<attachmentId>"
},
"name": "read_email_attachment"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mailbox | No | me | |
| messageId | Yes | ||
| attachmentId | Yes |