wechat_search_messages
Search allowed WeChat direct chats, group chats, and official accounts by keyword, then return matching messages with surrounding context for targeted conversation review.
Instructions
Search keyword across allowed WeChat 1-on-1 direct chats, group chats, and official accounts (including zstd-compressed XML messages) and return matching messages with surrounding context.
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": {
"query": "<query>"
},
"name": "wechat_search_messages"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| fresh | No | Force immediate SQLCipher decryption and SQLite snapshot refresh. | |
| limit | No | ||
| query | Yes | Keyword to search in message text and attachment titles. | |
| since | No | Optional time window filter (e.g. '30d', '7d'). | |
| format | No | markdown | |
| context | No | Number of before/after context messages per match (default 3). | |
| chat_ids | No | Optional list of chat_ids or ['ALL_ALLOWED'] / ['ALL_DIRECT'] / ['ALL_GROUPS']. | |
| chat_type | No | Optional session type filter ('all', 'direct', 'group', 'official'). | all |