Read one of my dochost pages
get_page_contentRead back the CURRENT Markdown or HTML of one of your pages. Call this before update_page whenever you did not write the live content yourself in this same conversation — update_page replaces the body wholesale, so editing from memory silently discards anything you cannot see, including edits the user made in the browser. Returns version and sha256; pass them to update_page as ifVersion / ifSha so the write is refused instead of overwriting a change you did not read. Expired pages are readable, and updating one republishes it on the same URL.
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>"
},
"name": "get_page_content"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| slug | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | ||
| body | Yes | The raw Markdown or HTML exactly as published. | |
| note | No | Present when the page is expired or under review. Relay it before editing. | |
| slug | Yes | ||
| bytes | Yes | ||
| title | No | ||
| format | Yes | ||
| sha256 | No | Pass to update_page as ifSha to guard the write. | |
| status | Yes | ||
| version | Yes | Pass to update_page as ifVersion to guard the write. | |
| editable | Yes |