Read an AgentMail attachment
read_agentmail_attachmentOpen one attachment of an AgentMail message and return what is in it. Text, CSV, JSON, HTML and code files come back as themselves; images come back as pictures the assistant can look at (a large photo, or a HEIC or TIFF, is scaled down to a JPEG; images up to 25 MB); PDFs, Word files and other documents come back as the text AgentMail extracted from them, when it extracted any; a PDF with no extracted text comes back whole as a document (an embedded application/pdf resource). Up to 10 MB. Get attachmentId from get_agentmail_message or get_agentmail_thread.
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": {
"mailbox": "<mailbox>",
"messageId": "<messageId>",
"attachmentId": "<attachmentId>"
},
"name": "read_agentmail_attachment"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mailbox | Yes | Address of the connected AgentMail inbox to act on. Call list_authorized_mailboxes to see available options. | |
| messageId | Yes | ||
| attachmentId | Yes |