Versioning
Version history, read-only version content and rollback. Read the stored content of any earlier page or text-asset version without changing the live site; list and roll back text assets (js, css, json, svg, etc). Binary assets are overwrite-only and have no history.
Try it with your AI assistant
Once WebsitePublisher is connected to your AI assistant, paste one of these into the chat. Replace the parts in [brackets] with your own details.
@WebsitePublisher roll back my stylesheet [asset] to the version from before yesterday's change@WebsitePublisher show me the old version of [page] from before my last edit, without changing the live page@WebsitePublisher list the version history of [asset] with its change summariesWith WebsitePublisher, roll back my stylesheet [asset] to the version from before yesterday's changeWith WebsitePublisher, show me the old version of [page] from before my last edit, without changing the live pageWith WebsitePublisher, list the version history of [asset] with its change summariesWith WebsitePublisher, roll back my stylesheet [asset] to the version from before yesterday's changeWith WebsitePublisher, show me the old version of [page] from before my last edit, without changing the live pageWith WebsitePublisher, list the version history of [asset] with its change summariesEndpoints (4)
Get the version history of a text asset (js, css, json, svg, etc). Returns metadata only — version numbers, hashes, timestamps, change summaries — no content. Binary assets have no history. Use this to find a version to roll back to.
| Field | Type | Required | Description |
|---|---|---|---|
slug |
string | ✓ Yes | The asset path, e.g. "css/style.css" or "js/app.js". |
Rollback a text asset to a previous version. Creates a NEW version with the old content (audit trail preserved). Provide target_version OR target_version_hash. Use list-asset-versions to find available versions. Binary assets cannot be rolled back — use upload_asset with overwrite instead.
| Field | Type | Required | Description |
|---|---|---|---|
slug |
string | ✓ Yes | The asset path to rollback, e.g. "css/style.css". |
target_version |
integer | No | Version number to rollback to (use this OR target_version_hash). |
target_version_hash |
string | No | Version hash (8 chars) to rollback to (use this OR target_version). |
Read the stored content of one earlier page version WITHOUT changing the live page (read-only, no rollback). Use get_page_versions to find the version number or hash. Returns content, version, hash, is_current, size_bytes and sha256.
| Field | Type | Required | Description |
|---|---|---|---|
slug |
string | ✓ Yes | The page slug, e.g. "index.html". |
target_version |
integer | No | Version number to read (use this OR target_version_hash). |
target_version_hash |
string | No | Version hash (8 chars) to read (use this OR target_version). |
Read the stored content of one earlier text-asset version (js, css, json, svg, etc) WITHOUT changing the live asset (read-only, no rollback). Use list-asset-versions to find the version number or hash. Returns content, version, hash, is_current, size_bytes and sha256.
| Field | Type | Required | Description |
|---|---|---|---|
slug |
string | ✓ Yes | The asset path, e.g. "js/app.js". |
target_version |
integer | No | Version number to read (use this OR target_version_hash). |
target_version_hash |
string | No | Version hash (8 chars) to read (use this OR target_version). |
MCP Tool Names
When using this integration through an AI assistant (Claude, ChatGPT, Cursor, etc.), the endpoints are available as MCP tools:
| Endpoint | MCP Tool Name |
|---|---|
| list-asset-versions | versioning_list_asset_versions |
| rollback-asset | versioning_rollback_asset |
| get-page-version | versioning_get_page_version |
| get-asset-version | versioning_get_asset_version |
Website