Publish a page
publish_pagePublish one HTML page on ShareHTML and get its link. Send the whole page as one file: CSS and JavaScript inside it, images as data URIs or from common CDNs, up to 5 MB on the free plan. It waits up to about 20 seconds and returns the page's status: live (give the owner the url), held (tell the owner the reasons exactly as given) or reviewing (not live yet: check again later with get_page). Set listed to true only when the owner asks for the page to be found in search engines; that is part of Pro. Set name only when the owner asks for an address of the page's own, such as maya-art.shrz.in (Pro); a name that cannot be had is answered only "Name not available", so ask the owner for another. 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": {
"html": "<html>"
},
"name": "publish_page"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| html | Yes | 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). Leave it out unless the owner asks. | |
| 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 |