Get message context
get_message_contextRetrieve a window of messages around a specific message in a chat to understand its context. Specify the message timestamp and optional before/after counts.
Instructions
Окно сообщений вокруг метки: N сообщений до и N после указанного message_id (timestamp в микросекундах).
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": {
"chat": "<chat>",
"message_id": "<message_id>"
},
"name": "get_message_context"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| chat | Yes | ChatId либо поисковый запрос для резолва чата | |
| after | No | Сколько сообщений ПОСЛЕ метки (по умолчанию 10) | |
| before | No | Сколько сообщений ДО метки (по умолчанию 10) | |
| message_id | Yes | Timestamp целевого сообщения в микросекундах (строка) |