memory_search
Search stored memory entries within one scope, ranked by BM25 relevance. Use it to recall prior knowledge by keyword, or leave the query empty to list the scope's recent entries.
Instructions
Search memory entries within one scope, ranked by BM25.
Covers the memories table only (direction-layer entries plus the legacy team/agent knowledge partitions); task memos, reports, and tasks are not searched here (use unified_search). Only valid entries are returned. English matches whole words with no stemming ("worktree" does not match "worktrees"); Chinese matches by character bigrams. An empty query returns the scope's most recent entries. To review everything a dispatched agent inherits, use memory_list.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Maximum number of results, default 10 (1-100) | |
| query | No | Search keywords (empty = most recent entries in the scope) | |
| scope | No | One of "global" (default) / "project" / "user" / "team" / "agent". Each call searches exactly one scope, so entries saved with scope="project" are found only with scope="project". | global |
| scope_id | No | Scope ID;**留空**时服务端按上下文推导(global→system、 user→user、project→当前项目或未注册目录的指纹临时桶)。只有需要 跨作用域精确指定时才显式传(如某 team 的 scope_id)。 |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||