search_chat
Searches QQ private or group chat history backwards for messages containing a keyword, with optional sender and scan-limit filters, to locate past conversations.
Instructions
Find messages containing a keyword (case-insensitive) in one chat by scanning its history backwards.
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>",
"keyword": "<keyword>"
},
"name": "search_chat"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| scan | No | How many recent messages to scan (max 2000) | |
| 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). | |
| keyword | Yes | Text to look for | |
| from_user | No | Only messages from this QQ number |