Get Gmail message
gmail_get_messageRetrieve a single Gmail message by ID with full body text and attachment metadata, and optionally specify account and format.
Instructions
Fetch a single message with full body text and attachment metadata.
Args:
message_id (string, required): Gmail message id. Message ids are ACCOUNT-SPECIFIC — pass the same 'account' the id came from.
account (string, optional): email or alias. Omit for the default account.
response_format: 'markdown' (default) or 'json'.
Returns: normalized message (from/to/cc, date, subject, labels, body text) plus attachment metadata (filename, mimeType, size, attachment_id). Attachment CONTENT download is not supported in v1.
Examples:
{"message_id": "18c2f5a7b3d9e1f0"}
{"message_id": "18c2f5a7b3d9e1f0", "account": "personal", "response_format": "json"}
Error Handling: a 404 usually means the id belongs to a different account.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| account | No | Email or alias of the account to use. Omit to use the default account. Call gmail_list_accounts if unsure. | |
| message_id | Yes | Gmail message id (account-specific). | |
| response_format | No | Output format: 'markdown' for compact human-readable rendering (default), 'json' for the full normalized structure. | markdown |