read_chat
Reads the latest messages from a private or group chat in readable order and pages back through older messages, marking the chat as read.
Instructions
Read the latest messages of a private or group chat as readable lines (oldest first). Page back with before_message_id = the oldest message_id you got. Marks the chat as read for get_unread. Note: older server history is reachable once the chat has had at least one message since QQ logged in on the server; everything seen since then is kept.
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": {
"target": "<target>"
},
"name": "read_chat"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| count | No | How many messages (max 200) | |
| target | Yes | Who to talk to: "qq:<QQ号>" for a friend/private chat, "group:<群号>" for a group, a bare number, or a friend remark/nickname/group name (must be unambiguous). | |
| mark_read_on_qq | No | Also clear the unread badge in QQ itself | |
| before_message_id | No | Return messages older than this message_id |