search_knowledge_base
Searches a specified knowledge base with semantic recall and returns matches ranked by relevance for queries such as search my XX knowledge base.
Instructions
知识库语义搜索:在指定知识库范围内进行语义召回。适用场景:「在我的 XX 知识库搜一下 XX」。返回结果按相关度从高到低排序。需要 note.topic.search_account_content.read scope。
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"topic_id": "<topic_id>",
"query": "<query>"
},
"name": "search_knowledge_base"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| query | Yes | 搜索关键词或语义描述(必填) | |
| top_k | No | 返回数量,默认 3,最大 10 | |
| topic_id | Yes | 知识库 ID(来自 list_topics 的 topic_id 字段)(必填) | |
| response_mode | No | 显式摘要模式;不传保持旧正文。需search.snippet.v1,不支持课程内语义筛选 | |
| max_snippet_chars | No | 每个命中的Unicode码点上限,默认400;需response_mode=snippet,full只表示完整片段 |