Get Gmail Threads Content Batch
get_gmail_threads_content_batchRetrieves content from multiple Gmail threads in a single batched request, processing up to 25 thread IDs per batch to prevent SSL connection exhaustion.
Instructions
Retrieves the content of multiple Gmail threads in a single batch request. Supports up to 25 threads 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": {
"thread_ids": "<thread_ids>",
"user_google_email": "<user_google_email>"
},
"name": "get_gmail_threads_content_batch"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| thread_ids | Yes | A list of Gmail thread IDs to retrieve. The function will automatically batch requests in chunks of 25. | |
| body_format | No | Body output format. 'text' (default) returns plaintext (HTML converted to text as fallback). 'html' returns the raw HTML body as-is without conversion. 'raw' fetches each message's full raw MIME content and returns the base64url-decoded body. | text |
| 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 |