getMessage
Retrieves a Gmail message by ID in clean, metadata, or full MIME format, with options to include quoted replies and limit decoded body characters.
Instructions
Get a specific message by ID. Clean mode removes quoted reply history by default. Full mode returns the raw MIME tree with decoded text bodies limited by 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": {
"id": "<id>"
},
"name": "getMessage"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | The ID of the message 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 — the message body in clean mode, each MIME text part in full mode; not a whole-response cap. Truncated text carries bodyTruncated + totalChars; 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 |