read_pdf_attachment
Extract text from a PDF email attachment, such as a receipt, when the email body only says it's attached. Use the message ID and filename to retrieve the PDF text.
Instructions
Extract the text of a PDF attachment, such as an emailed receipt.
Use this when read_email lists a PDF attachment and the body only says something like "your receipt is attached".
Args: message_id: The message ID from search_emails results. filename: The PDF's filename (from read_email's attachments list). folder: The folder the message is in.
Returns the PDF's text, or an error 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>",
"filename": "<filename>"
},
"name": "read_pdf_attachment"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| folder | No | INBOX | |
| filename | Yes | ||
| message_id | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |