get_message
Fetches one message's headers, plain-text body, and attachment details without marking it as read. Use it to inspect email content and attachments before deciding on actions.
Instructions
Get one message: headers, plain-text body (HTML converted to text, truncated to max_chars, default 20000, must be at least 1) and attachment metadata (part, filename, type, size). Does not mark it as read. size is the server's RFC822.SIZE; size_fetched appears when the fetched bytes differ.
URLs longer than 80 chars (mostly tracking links) are shortened to their host ("example.com/…") and
label-less long links are dropped; links_shortened reports how many. full_links=true keeps every URL.
The body is wrapped in an untrusted-content envelope (see the server instructions); body_chars and
body_truncated describe the text inside it. HTML text that a mail client would not display
(display:none, zero font size, white on white, ...) is removed and reported in hidden_content.
content_trust carries: invisible_chars_removed, from_is_self, sender_authentication (spf/dkim/dmarc
as the message's Authentication-Results header states them) and, when they apply,
reply_to_differs_from_sender and alternative_mismatch. Attachment filenames are sanitised.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": {
"account": "<account>",
"uid": "<uid>"
},
"name": "get_message"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| uid | Yes | ||
| folder | No | INBOX | |
| account | Yes | ||
| max_chars | No | ||
| full_links | No |