Read an email
get_messageReads a full email: sender, recipients, date, subject, plain-text body (HTML converted, truncated beyond 20,000 characters with bodyTruncated) and the list of attachments (name, type, size); get_attachment reads one of them. Also returns messageId and references, which create_draft accepts as inReplyTo and references to keep a reply in the same thread. On Gmail accounts, webUrl opens the message in Gmail. Does not mark the message as read.
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": {
"accountId": "<accountId>",
"uid": "<uid>"
},
"name": "get_message"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| uid | Yes | IMAP UID of the message, as returned by search and listing tools. | |
| folder | No | IMAP folder containing the message. Defaults to INBOX. | INBOX |
| accountId | Yes | Account id, as returned by list_accounts. |