Replace a page
update_pageReplace the HTML of one of the owner's pages and keep its link: the url stays the same. Like publish_page, it waits up to about 20 seconds and returns the new version's status, which can be held too. Without html it only changes who can open the page, its name or whether it is listed. Set listed to true only when the owner asks for the page to be found in search engines; that is part of Pro. Rules, from ShareHTML's terms and acceptable use policy (https://sharehtml.org/acceptable-use): publish nothing illegal; no phishing, and no page that pretends to be another person, company, bank, app or government, or asks for passwords, card numbers or one-time codes for a service the owner does not run; no sexual content of any kind; no malware, scams or pages that get visitors to run commands; no page that loads its content or code from elsewhere at runtime to hide what it shows or does. A page can be held before it goes live; the reply gives the reason. Tell the owner the reason exactly as given and stop; never change a held page to get it through.
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": {
"page_id": "<page_id>"
},
"name": "update_page"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| html | No | The whole page as one HTML file, starting with <!doctype html>, its CSS and JavaScript inside it. | |
| name | No | A name of the page’s own for its address, such as maya-art for maya-art.shrz.in (Pro only): 5 to 30 letters, numbers or hyphens. null takes it off. Leave it out unless the owner asks for one. | |
| title | No | A title for a page without a <title> of its own; a page’s own title is kept. | |
| access | No | Who can open it: anyone (with the link), password (with the link and the password), invite (only the emails in invite_emails, each with a code ShareHTML emails them when they open it) or owner (only the owner, signed in). Locks are Pro only; leave it out unless the owner asks. | |
| listed | No | List the page in search engines (Pro only), or false to unlist it. Leave it out unless the owner asks. | |
| page_id | Yes | The page’s id, as publish_page or list_pages gave it. | |
| password | No | The password visitors type, 6 to 64 characters, for access password. ShareHTML keeps only its hash and never sends it back. | |
| expires_at | No | When the link stops working, an ISO 8601 date and time with its zone such as 2026-12-31T23:59:00Z, or null for never (Pro only). | |
| invite_emails | No | For access invite: the emails to add to the page’s list and to remove from it. Nobody is emailed when they are added: the owner gives them the link, and each opens it with a code they ask for there. For a class or children, suggest a password or a plain link instead. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | ||
| url | Yes | ||
| name | Yes | ||
| title | Yes | ||
| views | Yes | ||
| access | Yes | ||
| listed | Yes | ||
| notice | No | ||
| status | Yes | ||
| invited | No | ||
| reasons | No | ||
| version | Yes | ||
| expiresAt | Yes | ||
| updatedAt | Yes | ||
| versionsKept | No | ||
| viewsThisMonth | No |