get_group_msg_history
Retrieve QQ group chat message history from the latest message or around a specific message ID, with controls for count and older or newer message paging.
Instructions
获取群消息历史 省略 message_id 从最新消息开始;翻页使用上一页实际 message_id,不要自行加减。 Returns: { messages }:群消息事件对象数组(每项为 OneBot 消息事件,内部字段不固定)。
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": {
"group_id": "<group_id>"
},
"name": "get_group_msg_history"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| count | No | ||
| group_id | Yes | 群号 | |
| message_id | No | ||
| reverse_order | No | 仅在 message_id 非 0 时生效;true 返回锚点及更旧消息,false 返回锚点及更新消息 |