getnote-search
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
Chinesegetnote-search Skill
getnote-search Skill
Semantic search across all notes or within a specific knowledge base.
可在所有笔记中或者指定知识库内执行语义搜索。
Prerequisites
前置条件
- CLI installed and authenticated (
getnoteshould show "Authenticated")getnote auth status
- 已安装CLI并完成认证(执行
getnote应显示"Authenticated")getnote auth status
Commands
命令
Search notes
搜索笔记
getnote search <query> [--kb <topic_id>] [--limit <n>]| Flag | Default | Description |
|---|---|---|
| — | Limit search to a knowledge base ( |
| 10 | Max results (max 10) |
Results are ranked by semantic relevance (high → low). Each result includes: , , (excerpt), , .
note_idtitlecontentcreated_atnote_typeNote:is only populated fornote_idtype results. Other types (NOTE,FILE,BLOGGER, etc.) return an emptyLIVE.note_id
bash
undefinedgetnote search <query> [--kb <topic_id>] [--limit <n>]| 选项标识 | 默认值 | 说明 |
|---|---|---|
| — | 限定在指定知识库( |
| 10 | 最大返回结果数(最高10条) |
搜索结果按语义相关性从高到低排序,每条结果包含:、、(摘要)、、。
note_idtitlecontentcreated_atnote_type注意:仅类型的结果会填充NOTE,其他类型(note_id、FILE、BLOGGER等)的LIVE返回为空。note_id
bash
undefinedSearch across all notes
搜索所有笔记
getnote search "大模型 API"
getnote search "大模型 API"
Search within a knowledge base
在指定知识库内搜索
getnote search "RAG" --kb qnNX75j0
getnote search "RAG" --kb qnNX75j0
Limit results + JSON output
限定结果数量 + JSON格式输出
getnote search "机器学习" --limit 5 -o json
---getnote search "机器学习" --limit 5 -o json
---Agent Usage Notes
Agent使用说明
- Use when parsing results programmatically.
-o json - JSON response:
{"success":true,"results":[{"note_id":"...","title":"...","content":"...","created_at":"...","note_type":"..."}]} - Note: is at the top level, not nested under
results.data - Get for
topic_idfrom--kb→getnote kbs -o json.data.topics[].topic_id - For type results, use
NOTEto get the full content.getnote note <note_id> - Max is 10; use
--limitfor browsing without a query.getnote notes - Exit code = success; non-zero = error. Error details go to stderr.
0
- 程序自动解析结果时请使用参数。
-o json - JSON响应格式:
{"success":true,"results":[{"note_id":"...","title":"...","content":"...","created_at":"...","note_type":"..."}]} - 注意:字段在响应最顶层,没有嵌套在
results下。data - 可通过返回的
getnote kbs -o json获取data.topics[].topic_id参数需要的--kb。topic_id - 对于类型的结果,可使用
NOTE获取完整内容。getnote note <note_id> - 的最大值是10;无搜索查询时可使用
--limit浏览笔记。getnote notes - 退出码代表执行成功;非0值代表出错,错误详情会输出到stderr。
0