Ragmir expand: Ragmir
ragmir_expandExpands a search citation into the full indexed text, including neighboring chunks, so you can quote or verify a passage before relying on it.
Instructions
Read the full indexed text of one citation from the "Ragmir" knowledge base: the cited chunk plus up to 3 neighbouring chunks on each side, within the output budget. Use it after ragmir_search to quote or verify a passage before relying on it. To read a whole document, expand the returned nextCitation (or previousCitation) with the same contextRadius until it is absent; documentChunks counts the document's chunks. Read-only; reports found:false when the citation is no longer in the index.
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": {
"citation": "<citation>"
},
"name": "ragmir_expand"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| citation | Yes | A citation from ragmir_search, such as docs/runbook.md:L12-L18#4 or specs/brief.pdf:p3#2. | |
| maxBytes | No | Output budget in bytes for this call; the server caps it at its configured maximum. | |
| contextRadius | No | Neighbouring chunks to include on each side, 0 to 3. | |
| expectedEvidenceId | No | The evidence id ragmir_search returned with that citation. If the indexed passage has changed since, the call fails with EVIDENCE_CHANGED instead of returning other text. |