rag_ask
Query a local LightRAG knowledge base to retrieve repository context, code architecture, and historical decisions using RAG.
Instructions
Query the local LightRAG knowledge base for repository context. Use this before answering questions about code architecture, historical decisions, indexed docs, or cross-file behavior.
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_ask"
}
}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 |