Ctx Search
ctx_searchSearch stored context chunks by meaning using semantic embeddings, with automatic fallback to keyword FTS5 search when semantic results are unavailable.
Instructions
Search stored chunks — semantic (embeddings) first, FTS5 fallback.
When semantic=True (default) and the embedding backend is available,
searches by meaning using FAISS HNSW. Falls back to FTS5 keyword search
if no backend, no index, or no semantic results.
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": {
"query": "<query>"
},
"name": "ctx_search"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | max results (default 5) | |
| query | Yes | search query (natural language or keywords) | |
| semantic | No | use semantic search first (default True) | |
| session_id | No | session to search ("default" = the shared default session only) | default |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||