Query Knowledge Library
query_knowledge_librarySearch a knowledge library and retrieve the most relevant passages to answer questions with extended context that exceeds standard LLM window limits.
Instructions
Queries a knowledge library and retrieves the most relevant chunks for a given query. Returns extended context that can be used to answer questions with much more detail than would fit in a normal LLM context window.
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": {
"library_name": "<library_name>",
"query": "<query>"
},
"name": "query_knowledge_library"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| query | Yes | The question or search query | |
| top_k | No | Number of most relevant chunks to retrieve (default: 8) | |
| library_name | Yes | Name of the knowledge library to query |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| query | Yes | ||
| context | Yes | ||
| total_words | Yes | ||
| library_name | Yes | ||
| chunks_retrieved | Yes |