Get Gmail Messages Content Batch
get_gmail_messages_content_batchRetrieves full or metadata content from multiple Gmail messages in a single batch request, up to 25 messages, to avoid SSL connection exhaustion.
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.
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>",
"user_google_email": "<user_google_email>"
},
"name": "get_gmail_messages_content_batch"
}
}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; fetched in batches of 25. | |
| include_links | No | When True, append a LINKS section listing the http(s) URLs from the HTML body that the text output omits. Only applies to body_format='text'. | |
| user_google_email | Yes | The user's Google email address. Required. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |