rag_get_context
Retrieve relevant context from a codebase index for a given query, enabling RAG without generating a final answer.
Instructions
Retrieve LightRAG context for a query without generating a final answer.
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": "rag_get_context"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| query | Yes | Question to ask LightRAG. | |
| mode | No | hybrid | |
| include_references | No | ||
| top_k | No | ||
| chunk_top_k | No | ||
| include_chunk_content | No |