get_gmail_threads_content_batch
Retrieve the content of multiple Gmail threads in a single batch request. Automatically chunks into batches of 25 and falls back to sequential API calls on failure.
Instructions
Fetch many Gmail threads in one batch, chunked internally.
Prefer this over calling get_gmail_thread_content in a loop — uses the Gmail batch API (25 per request, auto-chunked) and falls back to sequential fetches if the batch call fails. Requires the gmail.readonly OAuth scope.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| thread_ids | Yes | List of Gmail thread IDs. No hard cap — the tool chunks into batches of 25 automatically. | |
| user_google_email | Yes | The user's Google email address (authenticated account). | |
| 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 |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |