read_attachment
Extract and read the text of a specific email attachment using its message UID and attachment index; returns metadata for unsupported file types.
Instructions
Read the text of one attachment of a message (text, HTML, PDF, DOCX, XLSX/XLS/ODS; other types return metadata only). Index comes from read_message.
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": {
"uid": "<uid>",
"index": "<index>"
},
"name": "read_attachment"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| uid | Yes | UID from search. | |
| index | Yes | Attachment index from read_message (starts at 0). | |
| folder | No | Folder holding the message (default INBOX). | |
| max_chars | No | Most characters to return (default 20000, at most 200000). |