Ragmir search: Ragmir
ragmir_searchSearch a local knowledge base for cited passages, batch up to five related questions in one call, and return compact citations or full text so agents can ground answers or report missing evidence.
Instructions
Search the "Ragmir" knowledge base (/app) for cited passages. Returns compact citations by default; send related questions together in queries (up to 5) to share one budget. Passages already returned in this session come back as short seen stubs. Each result has a citation (path, lines or page, chunk), an excerpt, and weakEvidence when support is thin; an empty result means the base holds no evidence, so say so instead of guessing. Expand one citation, or set compact:false, only when full text is needed.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "ragmir_search"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| seen | No | Passages already returned in this session: collapse (default) to short stubs, include them in full again, or exclude them. | |
| topK | No | Passages per question. Default 3; the server caps it. | |
| query | No | One question, in natural language or with exact identifiers. | |
| scope | No | A named source scope from the config; ragmir_status lists them. | |
| compact | No | Default true: citations with short excerpts. false returns full passage text. | |
| explain | No | Adds the retrieval query and ranking signals; signals, not confidence. | |
| queries | No | Instead of query: up to 5 related questions answered together in one output budget. | |
| maxBytes | No | Output budget in bytes for this call; the server caps it at its configured maximum. | |
| contextPaths | No | Limit hits to these heading paths, such as "Guide > Migration". | |
| excludePaths | No | Skip files under these project-relative paths or globs. | |
| includePaths | No | Search only files under these project-relative paths or globs. | |
| contextRadius | No | Neighbouring chunks added on each side of a hit, 0 to 3. | |
| maxChunksPerDocument | No | Most passages returned from one file. Default 1. |