get_recent_context
Retrieve recent Telegram conversation history to provide context when missing or when the user refers to earlier messages. Includes timestamps, sender, and content for both parties.
Instructions
撈回最近 N 小時的 Telegram 對話(含時間、發出方、內容;雙向都有)。當你缺乏上下文、或使用者提到『剛剛/今天/昨天/最近』時,務必優先呼叫本工具還原脈絡。
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": {
"hours": "<hours>"
},
"name": "get_recent_context"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| hours | Yes | 往回幾小時 | |
| chat_id | No | 限定某對話 |