Read one wiki page — in full, as an outline, one section, or the lines around a phrase
get_wikiReturns one wiki page. ref takes either the page slug (what a human says) or the internal id (wiki-) — renaming a page changes its slug but never its id, so ids stay safe to store. Every response carries rev (the current revision, what you pass as baseRev when you write) and bodyChars. By default the whole body comes back. Pages run long (tens of thousands of characters); do not read one in full to answer a small question. view="outline" returns the lead paragraph and the heading tree (path like "1.2", level, heading, line, chars per section) — start there on a page you have not seen. section="" returns just that section (through its sub-headings), plus the footnote definitions it references; it must match exactly one heading, and on an ambiguous match the error lists the candidates with their paths. find="" returns the lines containing the text (case-insensitive, literal) with context lines around each, merged into blocks with line numbers — a block is ready to be the oldString of edit_wiki. find inside one section: pass both. Read in full before write_wiki mode="replace" — it overwrites the body wholesale, and an outline is not the body. For a one-passage fix, find or section the spot and call edit_wiki instead. Pass rev= to read an older revision instead of the current page (list them with list_wiki_revisions; outline/section/find work there too). To put an old revision back, do not paste its body into a write — use write_wiki mode="restore", which cannot mangle the prose in transit.
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": {
"slug": "<slug>",
"ref": "<ref>"
},
"name": "get_wiki"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ref | Yes | Page slug (e.g. "deploy-notes") or id (wiki-<uuid>). | |
| rev | No | Revision number to read. Omit for the current page. | |
| find | No | Literal text to look for (case-insensitive). Returns matching lines with context, merged into blocks with line numbers. With section, searches inside that section only. | |
| slug | Yes | Ground slug. | |
| view | No | "full" (default) returns the body; "outline" returns the lead and the heading tree with sizes instead. Ignored when section or find is given. | |
| context | No | Lines of context around each find match. Default 2. | |
| section | No | One heading, by its text (case-insensitive; backticks/emphasis ignored) or by its outline path ("1.2"). Returns that section and its sub-sections only. |