gmail_messages_get
Read a single Gmail message by ID to access its full content, headers, or raw format. Use after listing messages to retrieve a specific email.
Instructions
Read one message, by the id messages_list returns.
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": "gmail_messages_get"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | The ID of the message to retrieve. This ID is usually retrieved using messages.list. The ID is also contained in the result when a message is inserted (messages.insert) or imported (messages.import). | |
| format | No | The format to return the message in. Gmail applies 'full' when this is absent. 'minimal' returns only email message ID and labels; does not return the email headers, body, or payload. 'full' returns the full email message data with body content parsed in the payload field; the raw field is not used. 'raw' returns the full email message data with body content in the raw field as a base64url encoded string; the payload field is not used. 'metadata' returns only email message ID, labels, and email headers. 'full' and 'raw' cannot be used when accessing the api using the gmail.metadata scope. | |
| userId | No | The user's email address. The special value 'me' can be used to indicate the authenticated user. | me |
| metadataHeaders | No | When given and format is METADATA, only include headers specified. Gmail ignores it under any other format. |