get_thread
Fetch a message's full email conversation, oldest first, by UID and folder or Message-ID, with optional bodies and link shortening.
Instructions
Get the conversation a message belongs to, oldest first, from the folder and Sent.
Give uid (+folder) or message_id ("<...@...>"). Gmail uses its native thread id; other providers
match Message-ID/References/In-Reply-To. account="all" is allowed only with message_id.
Bodies get the same cleanup as get_message: long URLs are shortened to their host unless
full_links=true, and each message reports links_shortened when any were. Each body is wrapped in the
untrusted-content envelope (one nonce per call) and each message lists its untrusted_fields.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>"
},
"name": "get_thread"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| uid | No | ||
| folder | No | INBOX | |
| account | Yes | ||
| full_links | No | ||
| message_id | No | ||
| max_messages | No | ||
| include_bodies | No |