Edit a site page
edit_site_pageOn one site of the account, named in site. One change to a file of the site folder: find must match exactly once, whitespace included, and is replaced by replace. The result is parsed before it lands, so an edit that would break the page is refused with the line and the file keeps what it had. Each edit is a commit in the person's name and live at once. Then render_page to check your own work, and hand the person the page's address. 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>",
"find": "<find>",
"replace": "<replace>"
},
"name": "edit_site_page"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| find | Yes | ||
| path | Yes | The file inside the site folder, like pages/about.liquid | |
| site | Yes | The site to work on, as list_sites names it | |
| replace | Yes |