memory_search
Search local long-term memory for knowledge card summaries by entity, identifier, or path fragment. Retrieve project background, past decisions, or configuration details.
Instructions
检索本地长期记忆库,返回最相关的知识卡摘要。当需要项目背景、历史决策、之前讨论过的方案、环境配置、踩过的坑,或任何「我之前是不是记过这件事」的场景时调用。查不到就说明没记过,不要凭猜测继续。支持中文词、英文标识符(如 nginx、id_ed25519)、IP、路径片段。
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| kind | No | 可选,按卡片类型过滤:knowledge / project / mistake / prompt / tool / content | |
| limit | No | 返回条数上限,默认 5,最大 20 | |
| query | Yes | 检索词。**传实体名 / 标识符 / 命令 / 路径片段,不要传整句问句。**好的例子:`阿里云`、`id_ed25519`、`sqlite3`、`ecs-prod`、`/etc/nginx`、`database is locked`。不要传:「之前记过阿里云的内容吗」、「帮我找一下数据库相关的记录」——完整问句里只有个别词有检索价值,其余词会把结果带偏,并且会使匹配档位从精确(AND)降级到放宽(OR),而放宽档正是噪音的主要来源。 | |
| source | No | 可选,按来源 agent 过滤 |