get_message_context
Fetch messages before and after a specific message to read the surrounding discussion, leaving read markers and notifications unchanged.
Instructions
Get the messages around one message, e.g. to read the discussion a search result or mention is in.
Reading context leaves the read marker and notifications as they are.
Args: token: The conversation token. message_id: The message to center on. limit: How many messages to fetch before and after it (1-100, default 20). thread_id: Only messages of this thread (default 0 = the whole conversation). include_system: Also show system messages such as joins and edits (default false).
Returns: One line per message, oldest first, in the same "[id] author: text" form as get_messages; the requested message's line is marked with ">>".
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": {
"token": "<token>",
"message_id": "<message_id>"
},
"name": "get_message_context"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | ||
| token | Yes | ||
| thread_id | No | ||
| message_id | Yes | ||
| include_system | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |