Read a document
read_documentRead one document in a wiki. Without section, returns the full Markdown (frontmatter stripped) plus a provenance footer. To save tokens on a long page, pass section (a heading title as it appears in the page body, or its slug anchor) to retrieve ONLY that section and its subsections. The Markdown may contain [[wikilinks]] to related docs — follow one by calling read_document with path "wiki/.md" (drop any "#anchor" or "|label"). Exception: on a page under wiki-xl/, links whose first folder is not concepts, entities, summaries, syntheses, presentations or journal (e.g. [[reference/...]], [[guides/...]], [[history/...]]) are XL pages: use "wiki-xl/.md".
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": {
"wiki": "<wiki>",
"path": "<path>"
},
"name": "read_document"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Document path within the wiki, e.g. "wiki/concepts/setup.md". | |
| wiki | Yes | Wiki slug, e.g. "llama-cpp". | |
| section | No | Optional. A section anchor or heading title to read just that part. |