# Hermoso: update_page: Change a hosted page · Hermoso developer docs

> Machine-readable twin of https://hermoso.ai/docs/reference/publish/update_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/) / update_page

# `update_page`

Change a hosted page 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

Change a page published with publish_page. files [{path, content | url}] add or replace just those files and the rest are kept from the live version; remove [paths] deletes files; html replaces index.html; replace:true publishes exactly the files sent. Each change is a new version with its own preview link; live:false keeps the live page as it is. setLive <version> with no files makes an existing version live: a rollback, or bringing back an unpublished page. abTest {version, split} runs an A/B test: that version for split% of visitors (default 50), the live one for the rest; abTest:false ends it. A site without robots.txt / sitemap.xml gets them generated. get_page file returns a file's current source to edit. 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 new index.html

`files` `object[]` files to add or replace

`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)

`remove` `string[]` paths to delete, e.g. ["old.html"]

`replace` `boolean` true = the new version holds exactly the files sent

`live` `boolean` false = save as a preview only

`setLive` `number` make this existing version live (no files needed)

`badge` `boolean` false takes the Made with Hermoso badge off (paid plans); no files needed

`cookieBanner` `boolean` cookie banner + privacy page on or off; no files needed

`abTest` `object | boolean` test a version against the live one; false ends the test

`abTest.version` required `number` the variant version (publish it with live:false first)

`abTest.split` `number` percent of visitors who see it, 1-99, default 50

`title` `string`

`note` `string` what this version changes

## 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/update_page`.

**MCP** (`tools/call`)

`{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"update_page","arguments":{"name":"<string>"}}}`
**CLI**

`hermoso call update_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

- [publish_page](https://hermoso.ai/docs/reference/publish/publish_page/) Publish a web page (Hermoso hosts it)
- [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
- [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
- [set_site_secret](https://hermoso.ai/docs/reference/publish/set_site_secret/) Save a secret for a site’s server code
- [delete_site_secret](https://hermoso.ai/docs/reference/publish/delete_site_secret/) Delete a site secret
- [rollback_page](https://hermoso.ai/docs/reference/publish/rollback_page/) Roll a hosted project back

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