Get page version
get_page_versionFetch the content of a specific historical page version. Optionally slice content by line range using startLine and endLine parameters.
Instructions
Fetch the content of a specific historical version of a page. Optionally slice its content by line range with startLine/endLine: 0-based, inclusive on both ends. Default (0..-1) returns the whole version content. Negative values count from the end, Python-style (-1 = last line, -2 = second-to-last).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| pageId | Yes | ||
| 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. | |
| versionId | Yes | From get_page_history trail |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| endLine | Yes | ||
| version | Yes | ||
| startLine | Yes | ||
| totalLines | Yes |