ctx-search
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseContext Mode Search
Context Mode 搜索
Search indexed content without rereading raw sources into conversation context.
无需将原始源内容重新读入对话上下文,即可搜索已索引的内容。
Instructions
操作说明
- Prefer the MCP tool when it is available.
ctx_search - Batch all related questions in one array.
queries - Scope with when the user names a project or indexed label.
source - Use short, specific queries of two to four technical terms.
javascript
ctx_search({
source: "project:<name>",
queries: ["authentication middleware", "token refresh"],
limit: 5
})- If MCP tools are unavailable, fall back to the CLI:
bash
context-mode search "authentication middleware" --source project:<name> --limit 5- If the index is empty, tell the user to run or
/context-mode:ctx-indexfirst.context-mode index <path>
- 当MCP工具可用时,优先使用该工具。
ctx_search - 将所有相关问题批量放入一个数组中。
queries - 当用户指定项目或索引标签时,使用参数限定范围。
source - 使用由2到4个技术术语组成的简短、具体的查询语句。
javascript
ctx_search({
source: "project:<name>",
queries: ["authentication middleware", "token refresh"],
limit: 5
})- 如果MCP工具不可用,退而使用CLI:
bash
context-mode search "authentication middleware" --source project:<name> --limit 5- 如果索引为空,请告知用户先运行或
/context-mode:ctx-index指令。context-mode index <path>