get_thread_messages
List all messages in a Gmail thread by thread ID and return message IDs, subjects, senders, dates, and snippets so you can find the message ID needed to send a reply.
Instructions
List all messages in a thread by thread ID.
Returns message IDs, subjects, from addresses, dates, and snippets.
Use this to find the Gmail message ID needed by reply_email.
Required:
thread_id (str) — the Gmail thread ID. Get this from list_emails
or read_email (look for "thread_id" in responses).
Returns on success:
{"thread_id": "...", "total": N, "messages": [
{"id": "...", "subject": "...", "from": "...", "date": "...", "snippet": "..."}
]}
Workflow note: reply_email requires a Gmail message ID in the in_reply_to
parameter — NOT an email Message-ID header. Use get_thread_messages
to find the right message_id first. Example flow:
1. list_emails(query="subject:my thread") → get thread_id
2. get_thread_messages(thread_id) → get message_id
3. reply_email(thread_id=..., in_reply_to=message_id, ...)
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": {
"thread_id": "<thread_id>"
},
"name": "get_thread_messages"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| thread_id | Yes |