get_thread
Fetches a Microsoft Teams channel thread by root message ID, returning oldest replies up to a set limit with optional offline cache reads.
Instructions
Read a team channel root post and up to limit replies, oldest first (use get_messages for top-level channel posts or 1:1/group chats). Online by default (1+ Graph requests, 50 replies each); offline=true reads verified cached replies with no Graph call and errors on cache miss. Returns { conversation, thread: { root, replies, returned, has_more } }.
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": {
"target": "<target>",
"root_msg_id": "<root_msg_id>"
},
"name": "get_thread"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Maximum number of replies to return, excluding the root post (1..1000, default 50). | |
| target | Yes | Channel conv_key (chan:team:channel), "Team/Channel", or unique channel title substring. | |
| compact | No | Compact output (default true); set false for full conversation and message objects. | |
| offline | No | Read verified replies from the local SQLite cache with no Graph request; returns an error if cached coverage is missing or incomplete. | |
| root_msg_id | Yes | Message ID of the channel root post whose replies should be fetched. |