Для AI-агентов: markdown этой страницы — /docs/mcp-tool-site-publish.mdиндекс документации — /llms.txt
site_publish
Обновлено
Step 2 of publishing the site: take the files uploaded under `uploadId` and make them live on the connected domain. Only files that actually differ from what is deployed are written; files the new bundle no longer contains are removed; `index.html` is written LAST so visitors never see a half-swapped site. If the bundle contains `tgf-gate.json`, the access rules in it are applied to the site's gated pages. Returns which paths were written, which were removed and which were already identical. The uploaded files are consumed — to publish again, request fresh upload URLs. It also returns `attributionSnippet`: a one-line `<script>` tag. Paste it into every page of the site that links to the business's bot. Without it, a visitor who taps such a link on this site arrives anonymous and the business cannot tell which page or campaign brought them — the links keep working either way, so nothing looks broken. If the pages you just published do not carry it yet, add it and publish again.
Права и условия
required_scopes: ALL.
| Поле | Значение |
|---|---|
| description | "Step 2 of publishing the site: take the files uploaded under `uploadId` and make them live on the connected domain. Only files that actually differ from what is deployed are written; files the new bundle no longer contains are removed; `index.html` is written LAST so visitors never see a half-swapped site. If the bundle contains `tgf-gate.json`, the access rules in it are applied to the site's gated pages. Returns which paths were written, which were removed and which were already identical. The uploaded files are consumed — to publish again, request fresh upload URLs. It also returns `attributionSnippet`: a one-line `<script>` tag. Paste it into every page of the site that links to the business's bot. Without it, a visitor who taps such a link on this site arrives anonymous and the business cannot tell which page or campaign brought them — the links keep working either way, so nothing looks broken. If the pages you just published do not carry it yet, add it and publish again." |
| domain | "site" |
| name | "site_publish" |
| platform_version | "1.0.20" |
| required_scopes | ["site:write"] |
| risk | "write" |
| scope | "site:write" |
| title | "Site Publish" |
Входные параметры
Результат
null