Gmail Read Emails
gmail_read_emailsReads the content of up to 100 Gmail messages by ID when search results only provide snippets, returning bodies, metadata, attachments, and missing-ID details for follow-up processing.
Instructions
Read the content of one to 100 Gmail messages by ID, all at the same detail level. Use it after gmail_search_emails, gmail_get_mail_digest or gmail_check_mail_updates, which return only snippets; gmail_get_thread reads a whole conversation at once. Returns messages (id, thread_id, from, to, subject, date, snippet, label_ids, attachments with filename, mime_type, size and the download_id gmail_download_attachment takes, and, by format, body with truncated and next_offset), missing_count and missing_message_ids for IDs that no longer exist instead of failing the call, account_timezone, and count, has_more (always false), next_page_token and fetched_at.
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_ids": "<message_ids>"
},
"name": "gmail_read_emails"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| format | No | Body detail: 'metadata' omits the body; 'preview' returns the first 1,000 characters of the cleaned body text; 'clean' returns the cleaned body text in pages of about 8,000 characters; 'full' returns the whole cleaned body unpaged plus the original text/plain part (text_body), the raw date header, internal_date and history_id under details and, with include_html, the HTML part. | clean |
| offset | No | Character offset into the cleaned body text to resume from: the next_offset of a truncated 'preview' or 'clean' result; not a message index. It applies to every message in the call, so continue one message at a time; 'full' ignores it. | |
| message_ids | Yes | Gmail message IDs, from gmail_search_emails, gmail_get_mail_digest, gmail_check_mail_updates or gmail_get_thread results. | |
| include_html | No | With format='full' only: also return the original HTML part as html_body. Set it only when the markup itself is needed (layout, images, exact link targets with their query strings); newsletter HTML is often tens of kilobytes. When false, html_body is null and the readable text is in body. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| count | No | Number of items in this response. | |
| format | No | ||
| has_more | No | Whether another page is available. | |
| messages | No | ||
| fetched_at | No | RFC3339 time when this response was fetched. | |
| missing_count | No | ||
| next_page_token | No | Opaque token for the next page, or null. | |
| account_timezone | No | ||
| missing_message_ids | No |