# site\_publish

Source: <https://telegafirst.com/docs/mcp-tool-site-publish>
Locale: ru
releaseGitSha: ea133cd4ad87fe549ef000b139be145be9bd1717
sourceContentDigest: 02856df2fe3b0cba6ebbc575a4867a6486c7eda4b510a3557afe090d0860e826
Version: 2

# 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" |

## Входные параметры

[site\_publish: inputSchema](https://telegafirst.com/docs/schema-1fb3922ee986d097efcdfee56d74ff87aa5396a3b2b3c44fa7d7b90cf618832d)

## Результат

null
