Publish a web page (Hermoso hosts it)
publish_pagePublishes a web page or small static site from files you wrote to a live Hermoso URL, with versioned previews, unlimited pages per site, and optional backend support.
Instructions
Put a web page, or a small static site, live at https://.hermoso.page from files YOU wrote: Hermoso hosts it and never writes it. ONE SITE HOLDS UNLIMITED PAGES: a business keeps all its landing pages on one site as paths (/offer-a, /offer-b), each with its own A/B tests and ad links, and the plan's limit counts SITES, never pages; publish a new site only for another business or address. name: 3-40 lower-case letters, digits and dashes. html becomes index.html, or files [{path, content}] ({path, content, encoding:'base64'} for binary, {path, url} for a file put through upload_file): up to 100 web files (html, css, js, images, fonts, video, pdf), 10 MB each, 25 MB in all, with an index.html. Every publish is a new version with its own preview link (--v). Hermoso adds the brand's Hermoso tag to every HTML file (visits, UTMs, ad click ids, conversions); the page may load and call anything it needs. Forms post wherever their HTML says; to collect a form's sign-ups in the brand's email lead list, mark it data-hermoso-lead (it needs an email field). EVERY PUBLISHED FILE IS PUBLIC: never put API keys or secrets in page files (a browser key like Stripe's pk_ is fine; a secret key is refused); a secret store comes with the later backend pack. live:false saves a preview and leaves the live page alone. Publishing a name the brand already has replaces its files with exactly these; update_page changes a few, get_page reads a file back, list_pages lists them, unpublish_page takes one offline. A site that ships functions/_worker.js gets a backend: a database, accounts, uploads, checkout, realtime and cron, with keys kept by set_site_secret. To run ads to it, use the live URL, or get_page's adDestinations, as the ad's destination link. Free.
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": {
"name": "<name>"
},
"name": "publish_page"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| html | No | the full HTML of the page (becomes index.html) | |
| live | No | false = save this version as a preview only; default true | |
| name | Yes | the page name, which is its address: spring-sale is served at https://spring-sale.hermoso.page | |
| note | No | what this version changes | |
| badge | No | false takes the small Made with Hermoso badge off (paid plans) | |
| files | No | instead of (or as well as) html: every file of the site | |
| title | No | a title for list_pages (default: the index.html <title>) | |
| cookieBanner | No | a cookie banner + privacy page (default on when the tag forwards to ad platforms) |