recall
Search all notes using semantic matching to find relevant content based on keywords or descriptions. Returns ranked results for efficient information retrieval.
Instructions
全局语义搜索:在所有笔记中进行语义召回。适用场景:「搜一下」「找找我哪些笔记提到了 XX」。返回结果按相关度从高到低排序。需要 note.recall.read scope。
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| query | Yes | 搜索关键词或语义描述(必填) | |
| top_k | No | 返回数量,默认 3,最大 10 |
Implementation Reference
- src/client.ts:330-332 (handler)The actual handler method for the "recall" tool.
async recall(body: { query: string; top_k?: number }) { return this.request<RecallResp>("POST", "/resource/recall", undefined, body); } - src/index.ts:502-521 (registration)The MCP tool definition for "recall".
{ name: "recall", description: "全局语义搜索:在所有笔记中进行语义召回。适用场景:「搜一下」「找找我哪些笔记提到了 XX」。返回结果按相关度从高到低排序。需要 note.recall.read scope。", inputSchema: { type: "object" as const, properties: { query: { type: "string", description: "搜索关键词或语义描述(必填)", }, top_k: { type: "number", description: "返回数量,默认 3,最大 10", default: 3, }, }, required: ["query"], }, }, - src/index.ts:717-722 (handler)The handler logic in index.ts that calls the client method for the "recall" tool.
case "recall": { return client.recall({ query: input.query as string, top_k: input.top_k as number | undefined, }); }