Read page
read_pageRetrieve a Markdown wiki page or root file by path, with raw bytes for editing, line pagination, version metadata, and clear errors for missing or out-of-wiki paths.
Instructions
Read one file of the target wiki (confined to its root).
Use it to open a page found with list_pages or search_wiki, and the index, log and schema files at the wiki root. A missing path or one outside the wiki is refused with an error.
Default: rendered for display, Obsidian wikilinks stripped, so never show '[[...]]' to the user. Pass raw=True to get the verbatim bytes before editing a page, so write_batch keeps the '[[...]]' syntax on disk.
offset is 1-based and limit caps the lines returned. Returns {content, version, total_lines, start_line, end_line, truncated}. Pass 'version' back as 'expected_version' when modifying this page.
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_page"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| raw | No | Verbatim bytes, wikilinks kept: use before editing. | |
| path | Yes | File path relative to the wiki root, e.g. 'index.md' or 'wiki/topic.md' (as listed by list_pages or search_wiki). | |
| wiki | Yes | Wiki id, as returned by list_wikis. | |
| limit | No | Maximum number of lines; all when omitted. | |
| offset | No | First line to return, 1-based. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||