Mail attachments
mail_attachmentsList a mail's attachments, read text from a selected PDF, DOCX, PPTX, XLSX, or text file, or save all attachments and inline images to a directory.
Instructions
List a mail's attachments, read the text of one (read), or save them all (save_to).
Attachment text is wrapped in UNTRUSTED markers. A saved image can be opened as a file to look at it.
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": {
"mail_ref": "<mail_ref>"
},
"name": "mail_attachments"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| read | No | Return the text of this attachment (1-based number or file name). Works for PDF, DOCX, PPTX, XLSX and text files. | |
| inline | No | Also list and save inline images (screenshots pasted into the text). | |
| save_to | No | Directory to save all attachments into (Windows or /mnt/c/...). | |
| mail_ref | Yes | Mail ref from mail_find, e.g. 'm:7KQ2PXA'. |