extract_attachment_text
Extracts readable text from PDF or plain-text email attachments fetched via IMAP, enabling direct processing of attachment content without manual downloads.
Instructions
Extract readable text from a PDF or plain-text email attachment — fetched via IMAP from any provider.
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": {
"accountId": "<accountId>",
"uid": "<uid>",
"filename": "<filename>"
},
"name": "extract_attachment_text"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| uid | Yes | The UID of the email | |
| folder | No | The folder containing the email (default: INBOX) | |
| filename | Yes | The name of the attachment file | |
| accountId | Yes | The ID of the account to use |