Get Gmail Messages Content Batch
get_gmail_messages_content_batchRetrieve content from up to 25 Gmail messages in a single batch by supplying message IDs and user email. Choose full or metadata format, with plain text, HTML, or raw MIME body output.
Instructions
Retrieves the content of multiple Gmail messages in a single batch request. Supports up to 25 messages per batch to prevent SSL connection exhaustion.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| format | No | Message format. "full" includes body, "metadata" only headers. | full |
| body_format | No | Body output format (only applies when format='full'). 'text' (default) returns plaintext (HTML converted to text as fallback). 'html' returns the raw HTML body as-is without conversion. 'raw' fetches the full raw MIME message and returns the base64url-decoded content. | text |
| message_ids | Yes | List of Gmail message IDs to retrieve (max 25 per batch). | |
| user_google_email | Yes | The user's Google email address. Required. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |