Для AI-агентов: markdown этой страницы — /docs/mcp-tool-site-publish.mdиндекс документации — /llms.txt
site_publish
Обновлено
Step 2 of publishing: after every upload PUT completed, make the files under `upload_id` live at the ticket's `host`. The ticket's mode and base apply: `merge` keeps omitted files, the bio page, assets and references; `replace` removes omitted files. Only changed files are written, `index.html` LAST, so no half-swapped site shows. A publish never changes access rules (`site_gate_set`). A changed base or access policy is 409 SITE_BUNDLE_STALE: request a new ticket; another host is refused. 409 SITE_SOURCE_FETCH_PENDING: files with a `source` are still being fetched; nothing is published and the ticket is kept: repeat this call with the same `upload_id` in a few seconds. Plan size limits are checked on the uploaded bytes; an HTML tag over the fixed size is SITE_HTML_TAG_TOO_LARGE (`path`, `tag`, `attr` in `details`): move the data into its own file and publish again. A refusal leaves the live site as it was. Returns written/removed/identical paths, `manifest_digest` and `page_urls` (HTML pages that went live): `url` and `links` (web, universal, mini_app, each with a `description`); give the owner every link. If empty, follow `page_urls_reason` and `page_urls_recovery`. Publishing consumes the upload: request a new ticket to publish again. `attribution_snippet` is a one-line <script>: paste it into every page that links to the business's bot, or visitors arrive anonymous and the business cannot tell which page brought them (links still work, nothing looks broken). `warnings` (never a refusal, the site is live) carry `code`, `path`, `message`, `recovery`, `found`: follow `recovery` (`FORM_POST_NO_CORS`, `FORM_WITHOUT_OFFICIAL_SCRIPT`, `FORM_WITHOUT_PD_CONSENT`); `KNOWN_TRACKER_GATED` is information only (held back until the visitor accepts the cookie banner); an access rule on a page that is gone: publish it again or `site_gate_remove`. A counter it cannot hold back refuses the publish: SITE_TRACKER_NOT_GATEABLE. Fix the other warnings and publish again; official form markup: `site_form_declare`.
Права и условия
required_scopes: ALL.
| Поле | Значение |
|---|---|
| description | "Step 2 of publishing: after every upload PUT completed, make the files under `upload_id` live at the ticket's `host`. The ticket's mode and base apply: `merge` keeps omitted files, the bio page, assets and references; `replace` removes omitted files. Only changed files are written, `index.html` LAST, so no half-swapped site shows. A publish never changes access rules (`site_gate_set`). A changed base or access policy is 409 SITE_BUNDLE_STALE: request a new ticket; another host is refused. 409 SITE_SOURCE_FETCH_PENDING: files with a `source` are still being fetched; nothing is published and the ticket is kept: repeat this call with the same `upload_id` in a few seconds. Plan size limits are checked on the uploaded bytes; an HTML tag over the fixed size is SITE_HTML_TAG_TOO_LARGE (`path`, `tag`, `attr` in `details`): move the data into its own file and publish again. A refusal leaves the live site as it was. Returns written/removed/identical paths, `manifest_digest` and `page_urls` (HTML pages that went live): `url` and `links` (web, universal, mini_app, each with a `description`); give the owner every link. If empty, follow `page_urls_reason` and `page_urls_recovery`. Publishing consumes the upload: request a new ticket to publish again. `attribution_snippet` is a one-line <script>: paste it into every page that links to the business's bot, or visitors arrive anonymous and the business cannot tell which page brought them (links still work, nothing looks broken). `warnings` (never a refusal, the site is live) carry `code`, `path`, `message`, `recovery`, `found`: follow `recovery` (`FORM_POST_NO_CORS`, `FORM_WITHOUT_OFFICIAL_SCRIPT`, `FORM_WITHOUT_PD_CONSENT`); `KNOWN_TRACKER_GATED` is information only (held back until the visitor accepts the cookie banner); an access rule on a page that is gone: publish it again or `site_gate_remove`. A counter it cannot hold back refuses the publish: SITE_TRACKER_NOT_GATEABLE. Fix the other warnings and publish again; official form markup: `site_form_declare`." |
| domain | "site" |
| name | "site_publish" |
| platform_version | "1.0.34" |
| required_scopes | ["site:write"] |
| risk | "write" |
| scope | "site:write" |
| title | "Site Publish" |