Get Context Window Around Message
get_message_contextRetrieve messages before and after a target Telegram message ID to understand conversational context around a specific event, quote, or reply. Read-only.
Instructions
Retrieve a surrounding window of messages before and after a target message ID in a chat. Use when understanding conversational context around a specific event or quote. Read-only operation.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| account | No | Optional account label for multi-account environments. If omitted in single-mode, the default account is used. In multi-mode without an account, read-only tools fan out across all configured accounts. | |
| chat_id | Yes | Target Telegram chat, group, supergroup, channel, or user identifier. Accepts numeric chat ID (e.g. -1001234567890 or 123456789), username (e.g. '@channel'), or phone number. | |
| message_id | Yes | Unique integer ID of the target message within the specified chat. | |
| context_size | No | Number of surrounding messages before and after target message to include for context. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |