Render a page
render_pageOn one site of the account, named in site. The site's own rendering of one path — "/" for the home page, a post's public path, "/tag/", a site page's own path, a path that does not exist for the theme's 404 (error.liquid) — with the theme as it stands, held changes included, as HTML, without a browser: how you check your own work. Read it for a missing partial, an empty loop, a stray tag, then fix and render again. Long pages are cut at forty thousand characters. When it looks right, hand the person the page's address.
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": {
"site": "<site>",
"theme": "<theme>"
},
"name": "render_page"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | No | A path on the site; / by default | |
| site | Yes | The site to work on, as list_sites names it | |
| theme | Yes | ||
| sample | No | Render with fifty sample posts instead of the site's own; false by default |