read_attachment
Reads valid UTF-8 email attachment text inline so you can inspect supported text, JSON, XML, YAML, CSV, HTML, Markdown, or log files without saving them.
Instructions
Read valid UTF-8 attachment text inline. Accepts text/*, application/json, application/xml, application/x-yaml MIME types or .txt, .csv, .json, .html, .md, .xml, .log extensions. Uses extension-based MIME fallback when unavailable. Use save_attachment for binary files.
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>",
"mailboxName": "<mailboxName>",
"accountName": "<accountName>",
"attachmentName": "<attachmentName>"
},
"name": "read_attachment"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| messageId | Yes | The numeric ID of the message | |
| accountName | Yes | The name of the account containing the mailbox | |
| mailboxName | Yes | The name of the mailbox containing the message | |
| attachmentName | Yes | The name of the attachment to read |