batchGetMessages
Retrieve multiple Gmail messages by ID in parallel, choosing clean, metadata, or full format to trim quoted history and cap decoded body length per message.
Instructions
Get multiple messages by ID in parallel. Clean mode removes quoted reply history; full mode limits decoded text bodies with maxBodyChars.
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": {
"ids": "<ids>"
},
"name": "batchGetMessages"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ids | Yes | The IDs of the messages to retrieve | |
| format | No | Response format: clean (default), metadata (headers only), or full (raw MIME tree) | clean |
| maxBodyChars | No | Max decoded chars per text body — per message in clean mode, per MIME text part in full mode; not a whole-response cap. Oversized undecoded parts (e.g. HTML) are omitted with a totalChars note. 0 = unlimited. | |
| includeQuoted | No | In clean mode: include quoted reply history. Default false. | |
| includeBodyHtml | No | In full mode only: whether to include parsed HTML body parts |