Write a site page
write_site_pageOn one site of the account, named in site. A whole file of the site folder, new or replaced: pages/about.liquid answers at /about, pages/about/team.liquid at /about/team, pages/<path>.html is served exactly as written, and assets/<file> at /site/assets/. A .liquid page may open with a front matter block — title, description, layout (theme, the default, or none), noindex — and its front matter and its Liquid are parsed before anything lands: a page that would not render is refused with the line, and the file is left as it was. Read pixelglass://site-pages/contract first. Each write is a commit in the person's name and live at once; site_pages_history and restore_site_pages take it back. Admins only.
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>",
"path": "<path>",
"content": "<content>"
},
"name": "write_site_page"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | The file inside the site folder, like pages/about.liquid | |
| site | Yes | The site to work on, as list_sites names it | |
| content | Yes |