Analyze XMemo memory text
analyze_memory_textCounts a word or phrase across XMemo memories, optionally grouped by day, month, agent, location, or type, when the user asks how often a given word or topic appears.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| since | No | RFC 3339 timestamp with timezone offset (e.g., '2026-09-01T00:00:00+09:00'). Trigger: Call this whenever the user query mentions any relative or absolute time constraint (今天/今日/昨天/昨日/前天/上周/8月1日/8月10日到9月1日/最近...). Model responsibility: You (the calling LLM) know current date and user local time, so you must convert natural language time expressions into absolute timestamps. Consequence: If omitted, the server falls back to heuristic guessing which may misinterpret timezone day boundaries or relative dates. | |
| until | No | RFC 3339 timestamp with timezone offset (e.g., '2026-09-02T00:00:00+09:00'). When used with since, defines the half-open interval [since, until) with until > since (maximum 90 days span). Trigger: Pass when the user query specifies an end date or bounded window (e.g., 昨天 end of day, 截至8月10日, 8月10日到9月1日). Model responsibility: Convert natural language end bounds into absolute timestamps with timezone offsets. Consequence: If omitted, the window is open-ended on the upper side or derived heuristically. | |
| phrase | Yes | Exact word or phrase to count across visible XMemo memories. | |
| group_by | No | Optional grouping: none, month, agent, location, memory_type, type, source, path, bucket, or day. | none |
| match_mode | No | How to match phrase: exact, case_insensitive, or regex_lite. | exact |
| max_examples | No | Maximum number of short snippets to include. | |
| include_examples | No | Whether to include a few short matching memory snippets. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |