# Hermoso: publish_page: Publish a web page · Hermoso developer docs

> Machine-readable twin of https://hermoso.ai/docs/reference/publish/publish_page/. Generated from the shipped page. Do not edit by hand.
> Full agent guide: https://hermoso.ai/llms.txt · MCP: https://app.hermoso.ai/mcp

[Docs](https://hermoso.ai/docs/) / [Tool reference](https://hermoso.ai/docs/reference/) / [Publishing & scheduling](https://hermoso.ai/docs/reference/publish/) / publish_page

# `publish_page`

Publish a web page (Hermoso hosts it) destructive

Area: LAUNCH PAGES · [Publishing & scheduling](https://hermoso.ai/docs/reference/publish/). Generated from the running MCP server, like the rest of the [tool reference](https://hermoso.ai/docs/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

Parameter Type Description

`name` required `string` the page name, which is its address: spring-sale is served at https://spring-sale.hermoso.page

`html` `string` the full HTML of the page (becomes index.html)

`files` `object[]` instead of (or as well as) html: every file of the site

`files[].path` required `string` relative path inside the site, e.g. index.html, css/site.css, img/hero.webp

`files[].content` `string` the file content: text, or base64 with encoding base64

`files[].encoding` `"utf-8" | "base64"` utf-8 (default) for text, base64 for binary

`files[].url` `string` instead of content: the url of a file put through upload_file (or any public https file)

`title` `string` a title for list_pages (default: the index.html <title>)

`live` `boolean` false = save this version as a preview only; default true

`note` `string` what this version changes

`badge` `boolean` false takes the small Made with Hermoso badge off (paid plans)

`cookieBanner` `boolean` a 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](https://hermoso.ai/docs/credits/).

## Related tools

- [upload_file](https://hermoso.ai/docs/reference/publish/upload_file/) Upload a local file -> durable public URL
- [update_page](https://hermoso.ai/docs/reference/publish/update_page/) Change a hosted page
- [get_page](https://hermoso.ai/docs/reference/publish/get_page/) Read a hosted page
- [list_pages](https://hermoso.ai/docs/reference/publish/list_pages/) List hosted pages
- [unpublish_page](https://hermoso.ai/docs/reference/publish/unpublish_page/) Take a hosted page offline
- [set_site_secret](https://hermoso.ai/docs/reference/publish/set_site_secret/) Save a secret for a site’s server code
- [connect_domain](https://hermoso.ai/docs/reference/publish/connect_domain/) Serve a page on your own domain
- [domain_status](https://hermoso.ai/docs/reference/publish/domain_status/) Check a connected domain
- [disconnect_domain](https://hermoso.ai/docs/reference/publish/disconnect_domain/) Disconnect a domain from a page
- [delete_site_secret](https://hermoso.ai/docs/reference/publish/delete_site_secret/) Delete a site secret

[All 728 Publishing & scheduling tools](https://hermoso.ai/docs/reference/publish/) · [tools.json](https://hermoso.ai/docs/reference/tools.json)
