knowledge_retrieve
Retrieve relevant context chunks and format them as a ready-to-inject block for LLM prompts. Use this when the result will be used as context.
Instructions
Retrieve relevant context chunks as a ready-to-inject context block for the LLM. Prefer this over knowledge_search when the result will be used as context.
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": "knowledge_retrieve"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| query | Yes | ||
| top_k | No | ||
| doc_id | No | Only retrieve within this document | |
| source | No | Only retrieve documents with this source | |
| min_score | No |