read_attachment_text
Extract text from Gmail attachments like PDF, DOCX, XLSX, PPTX, and text files without saving them, so AI agents can summarize or analyze content in chat.
Instructions
Return the text of an attachment without saving it.
Supports PDF, docx, xlsx, pptx, and text files (txt, csv, json, xml, html, md).
Other types (images, zip, doc, xls, ppt): use download_attachment (local server only).
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>",
"filename": "<filename>"
},
"name": "read_attachment_text"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| index | No | ||
| filename | Yes | ||
| max_chars | No | ||
| message_id | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |