get_gmail_message_content
Retrieve a single Gmail message's headers and body by ID. Supports text, HTML, or raw MIME output.
Instructions
Retrieve one Gmail message's headers and body by ID.
Use this for a single message; for multiple IDs prefer get_gmail_messages_content_batch to avoid round trips. For an entire conversation use get_gmail_thread_content. Attachment bytes are not returned here — use get_gmail_attachment_content. Requires the gmail.readonly OAuth scope.
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_id": "<message_id>",
"user_google_email": "<user_google_email>"
},
"name": "get_gmail_message_content"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| message_id | Yes | Gmail message ID from search_gmail_messages or from the URL like mail.google.com/mail/u/0/#inbox/<id>. | |
| 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 the full raw MIME message and returns the base64url-decoded content. | text |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |