kb_chunks_retrieve
Retrieves relevant passages from the connected private knowledge base. Call this whenever a question depends on the organisation's stored knowledge; the model may not otherwise have access to it. Returns a flat list of passages ordered by relevance; pass them as context when generating your answer and cite the source document for each claim. For "show me documents about X" browse-style queries, prefer kb_documents_search.
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_chunks_retrieve"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| k | No | How many chunks to return (default 8, maximum 30; larger values are clamped to 30). | |
| mode | No | Retrieval mode (default: hybrid). Use vector for semantic similarity, keyword for literal matches, hybrid (recommended) for both. | |
| query | Yes | Natural-language question or search terms to ground against the corpus | |
| group_slugs | No | Restrict retrieval to docs in any of these groups | |
| tenant_slug | No | Tenant slug to target. Required when your token grants several workspaces; omit when it grants one. If you omit it with several, the refusal names your default workspace; call kb_tenants_list to see every workspace the token grants. | |
| project_slug | No | Restrict retrieval to one project |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| chunks | Yes | ||
| confidence | Yes |