hermosodocs

publish_page

Publish a web page (Hermoso hosts it) destructive

Area: LAUNCH PAGES · Publishing & scheduling. Generated from the running MCP server, like the rest of the tool reference.

Description

Put a web page, or a small static site, live at https://<name>.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 (<name>--v<N>). 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.

Parameters

ParameterTypeDescription
namerequiredstringthe page name, which is its address: spring-sale is served at https://spring-sale.hermoso.page
htmlstringthe full HTML of the page (becomes index.html)
filesobject[]instead of (or as well as) html: every file of the site
files[].pathrequiredstringrelative path inside the site, e.g. index.html, css/site.css, img/hero.webp
files[].contentstringthe file content: text, or base64 with encoding base64
files[].encoding"utf-8" | "base64"utf-8 (default) for text, base64 for binary
files[].urlstringinstead of content: the url of a file put through upload_file (or any public https file)
titlestringa title for list_pages (default: the index.html <title>)
livebooleanfalse = save this version as a preview only; default true
notestringwhat this version changes
badgebooleanfalse takes the small Made with Hermoso badge off (paid plans)
cookieBannerbooleana cookie banner + privacy page (default on when the tag forwards to ad platforms)

Example call

Every required parameter is shown, filled from the schema where it gives a value and otherwise with a placeholder naming the type. Replace the placeholders with real values. The same call works on the MCP server, the CLI and POST https://app.hermoso.ai/v1/tools/publish_page.

MCP (tools/call)

{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"publish_page","arguments":{"name":"<string>"}}}

CLI

hermoso call publish_page --json '{"name":"<string>"}'

Credits

Credits are spent only on two things: running an AI model (image, video, voice, text, planning, post-production) and Ad Spy research. See Credits & costs.

All 728 Publishing & scheduling tools · tools.json