Get Gmail Message Content
get_gmail_message_contentRetrieve the subject, sender, recipients, and body of a Gmail message by providing its ID and user email. Supports plaintext, HTML, or raw MIME format.
Instructions
Retrieves the full content (subject, sender, recipients, body) of a specific Gmail message.
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 | The unique ID of the Gmail message to retrieve. | |
| user_google_email | Yes | The user's Google email address. Required. | |
| 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 |