get-mail-attachment-content
get-mail-attachment-contentDownloads an email attachment and returns its content. Converts DOCX, XLSX, PPTX, PDF, TXT, and CSV to text; other binaries are returned as base64.
Instructions
Download an attachment and return its content. DOCX/XLSX/PPTX/PDF/TXT/CSV are converted to text; other binaries (images) come back as base64.
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": "get-mail-attachment-content"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| fileName | No | Attachment file name (helps pick the right text extractor) | |
| messageId | Yes | Value for messageId | |
| attachmentId | Yes | Value for attachmentId |