Preview a page before publishing
preview_pageShows the person how the page WOULD look with this document, right in the conversation, without publishing anything. Takes exactly what put_page takes and checks it the same way, so a draft that previews will publish. Use it when the person asks to see the page first, or when you want their opinion on a new page or a bigger change; change the draft and preview again as they give feedback. Publish with put_page, sending the same blocks, theme and version, once they say yes, or they can press Publish in the preview. When the person just wants the change made, put_page directly and skip the preview. Outside image URLs are shown from where they are and stored on Keepp only when the page is published.
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": {
"business": "<business>",
"version": "<version>",
"blocks": "<blocks>"
},
"name": "preview_page"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| theme | No | The page-wide theme. | |
| blocks | Yes | The complete ordered list of blocks the page would have, exactly as you would send it to put_page. The keepp://capabilities resource lists every block type and its fields. | |
| version | Yes | The version from the get_page you are editing. Publishing the preview sends it to put_page. | |
| business | Yes | The page handle, as it appears in keepp.link/<handle>. For example "janedoe". |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | Where visitors will find the page once it is published. | |
| warnings | Yes | Would publish anyway. Things only visible once rendered — worth fixing. | |
| published | Yes | Always false: a preview is never published. | |
| blockCount | Yes |