get_friend_msg_history
Retrieve a friend's QQ message history, starting from the latest bidirectional records or from a specific message anchor.
Instructions
获取好友消息历史(无锚点时从服务器获取最新双向记录) 省略 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": {
"user_id": "<user_id>"
},
"name": "get_friend_msg_history"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| count | No | 无锚点时从 QQ 服务器获取最新双向历史;服务器或身份解析失败时动作失败,不返回不完整的本地缓存 | |
| user_id | Yes | ||
| message_id | No | ||
| reverse_order | No | 仅在 message_id 非 0 时生效;true 返回锚点及更旧消息,false 返回锚点及更新消息 |