You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: skills/wechat-mcp-copilot/references/chats.md
+10-2Lines changed: 10 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -5,8 +5,8 @@ Use this for chat sessions, message search, and message context.
5
5
## Flow
6
6
7
7
1. Resolve fuzzy target with `wechat.chat.resolve_session`.
8
-
2. For recent messages, call `wechat.chat.get_messages` with a small `limit`.
9
-
3. For keywords, call `wechat.chat.search_messages`.
8
+
2. For recent/latest messages, call `wechat.chat.get_messages` with a small `limit`; the default `source=auto` reads live WeChat WCDB directly.
9
+
3. For keywords, call `wechat.chat.search_messages`; the default `source=auto` uses the WCDB-derived realtime FTS index. If it is still building, retry after the index status becomes ready.
10
10
4. Use `wechat.chat.list_search_senders` when the user needs sender facets for a broad search.
11
11
5. For a hit that needs context, call `wechat.chat.get_message_around`.
12
12
6. For merged-forward chat history or AppMsg cards that only expose `server_id`, call `wechat.chat.resolve_chat_history` or `wechat.chat.resolve_app_message`.
@@ -26,3 +26,11 @@ Use this for chat sessions, message search, and message context.
26
26
-`wechat.chat.resolve_app_message`
27
27
28
28
Do not scan full histories by pagination when an aggregate or search tool can answer.
29
+
30
+
## Freshness
31
+
32
+
-`list_sessions`, `resolve_session`, `get_messages`, `get_message_around`, `get_message_anchor`, `get_daily_message_counts`, and `search_messages` default to `source=auto`.
33
+
- Use `source=realtime` only when you explicitly require live WeChat WCDB and want failure instead of fallback.
34
+
- Use `source=decrypted` only for explicit legacy snapshot analysis against output databases.
35
+
-`search_messages source=auto` and `list_search_senders source=auto` use the same realtime WCDB-derived index, so single-character Chinese searches should not fall back to slow bounded scans once the index is ready.
36
+
-`get_message_raw` intentionally remains an output-snapshot debugging tool for raw decrypted fields.
Copy file name to clipboardExpand all lines: skills/wechat-mcp-copilot/references/mobile.md
+2-1Lines changed: 2 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -22,9 +22,10 @@ Use this for phone, ScreenMemo, and external MCP clients unless the user needs a
22
22
- Do not fetch binary media through MCP. Use returned URLs in the app.
23
23
- Use low-level tools only for debugging, raw fields, or unusual media URL construction.
24
24
- Data preparation, index/cache build, export, realtime sync, local editing, system settings, and data deletion tools are not exposed through MCP.
25
+
- Chat/session/context/calendar tools default to `source=auto` (direct live WeChat WCDB). Mobile chat search also defaults to `source=auto` and uses the WCDB-derived realtime FTS index; `source=decrypted` is only for explicit legacy output snapshots.
25
26
26
27
## Recovery
27
28
28
29
- If `ready=false`, stop content tools and direct the user to the desktop/web app for data preparation or backend diagnostics.
29
30
- If target resolution is ambiguous, ask for one clarifying clue or show top candidates.
30
-
- If search returns nothing, try `resolve_target` and then `get_chat_context` before declaring no data.
31
+
- If search returns nothing, try `resolve_target` and then `get_chat_context` before declaring no data; `source=auto` search is backed by the realtime WCDB-derived FTS index and may need the index build to finish first.
0 commit comments