Preview page
preview_pageA picture (PNG) of a page's latest DRAFT exactly as publishing would serve it, header, footer and menus included. Nothing is published or changed. width: "desktop" (1280 px, the default) or "phone" (390 px). focus: a node id, outlined — the page's, or one of the site header or footer it wears. region: "focus" (the default with a focus: that node and the page around it, full size), "top" (the default without: the first screen) or "all" (the whole page, cut at 6000 px). A design shows on: the first active product of its kind (product-template: goods; product-template-download: downloads; product-template-access: classes & content — else a marked sample of the kind), the newest live post (post-template), the home page (site-header, site-footer). cart-template: the cart OPEN over the home page with two lines (the shop’s products, else marked samples; shows says which). Other sites' content is not loaded (a map, embed or video: a still). asPublished: true leaves held pages out.
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": {
"siteId": "<siteId>",
"pageId": "<pageId>"
},
"name": "preview_page"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| focus | No | A node id to outline in the picture | |
| width | No | ||
| pageId | Yes | Page id (from get_site), or a template id: product-template, product-template-download, product-template-access, cart-template, post-template, site-header, site-footer | |
| region | No | ||
| siteId | Yes | Site id (from list_sites) | |
| asPublished | No |