mail_attachment
Extract text from email attachments such as PDF, Word, Excel, CSV, HTML, or .eml by message ID and file name or position. Read attachment content directly for analysis.
Instructions
Read the text of an attachment: PDF, Word (.docx), Excel (.xlsx), text, CSV, HTML or .eml.
name is the file name from mail_read, or its position ("1", "2", ...).
Scanned PDFs without text cannot be read.
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": {
"message_id": "<message_id>",
"name": "<name>"
},
"name": "mail_attachment"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | ||
| message_id | Yes |