mail_attachment
Reads one email attachment as text by its attachment number from a message, converting PDF, Word, Excel, PowerPoint, and similar files into readable content.
Instructions
Read one attachment as text, by its number in mail_get (PDF, Word, Excel, PowerPoint and more are converted; a forwarded mail is shown like mail_get shows a 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": {
"message_id": "<message_id>",
"attachment": "<attachment>"
},
"name": "mail_attachment"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| attachment | Yes | ||
| message_id | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |