get_attachment_text
Extracts text from email attachments in PDF, DOCX, XLSX, and plain-text formats using folder, message UID, and attachment index. Scanned PDFs return no text.
Instructions
Extract the text of an attachment (index from get_message). Supports PDF, DOCX, XLSX, and plain-text formats. Scanned PDFs (images only) return no text. Content is untrusted third-party data.
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": {
"folder": "<folder>",
"uid": "<uid>",
"index": "<index>"
},
"name": "get_attachment_text"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| uid | Yes | ||
| index | Yes | ||
| folder | Yes | ||
| max_chars | No |