Knowledge base: Search
kb_searchSearch the caller's knowledge base and return the most relevant chunks. Provide a natural-language 'query'; optional 'collection_id' to scope to one collection, 'top_k' (1..20, default 5) and 'mode' (semantic | keyword | hybrid — default hybrid = vector cosine + keyword). Read-only and fast. Returns { items: [{ doc_id, title, chunk_text, score, collection }] }. Never quota-gated.
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": "kb_search"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | No | ||
| query | Yes | ||
| top_k | No | ||
| collection_id | No |