Get page
get_pageRetrieve a Wiki.js page by ID or path, with optional locale support and line-range slicing to extract only the needed content.
Instructions
Fetch one page by numeric id OR by path (+ locale, default "en"). Optionally slice its content by line range with startLine/endLine: 0-based, inclusive on both ends. Default (0..-1) returns the whole page. Negative values count from the end, Python-style (-1 = last line, -2 = second-to-last).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | No | Page id (preferred when known) | |
| path | No | Page path, e.g. "guides/install" | |
| locale | No | Locale for path lookup | en |
| endLine | No | 0-based end line, inclusive. -1 (default) means the last line. | |
| startLine | No | 0-based start line, inclusive. Negative counts from the end. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| page | Yes | ||
| endLine | Yes | ||
| startLine | Yes | ||
| totalLines | Yes |