К содержанию
TelegaFirst

Для AI-агентов: markdown этой страницы — /docs/mcp-tool-site-request-upload.mdиндекс документации — /llms.txt

site_request_upload

Обновлено

Step 1 of publishing the business's static site to its connected custom domain: declare EVERY file of the bundle (path, byte size, content type) and get back one upload URL per file plus an `uploadId`. Upload each file with an HTTP PUT to its URL — the byte length must match what you declared, or the upload is rejected. Declare the WHOLE site, not just what changed: the platform works out which files actually differ from what is deployed and only writes those. Then call `site_publish` with the same `host` and the `uploadId`. The domain must already be connected to this account (`domain_add_request` → `domain_verify`), and the bundle must fit the plan's size limit — both are checked here, before any URL is issued. Before you build the pages: every page that carries a link to the business's bot should also carry the platform's small attribution script, or the business cannot tell which page or campaign produced a customer. `site_publish` returns the exact `<script>` line to paste — put it in the page template now and you will not need a second deploy to add it.

Права и условия

required_scopes: ALL.

ПолеЗначение
description"Step 1 of publishing the business's static site to its connected custom domain: declare EVERY file of the bundle (path, byte size, content type) and get back one upload URL per file plus an `uploadId`. Upload each file with an HTTP PUT to its URL — the byte length must match what you declared, or the upload is rejected. Declare the WHOLE site, not just what changed: the platform works out which files actually differ from what is deployed and only writes those. Then call `site_publish` with the same `host` and the `uploadId`. The domain must already be connected to this account (`domain_add_request` → `domain_verify`), and the bundle must fit the plan's size limit — both are checked here, before any URL is issued. Before you build the pages: every page that carries a link to the business's bot should also carry the platform's small attribution script, or the business cannot tell which page or campaign produced a customer. `site_publish` returns the exact `<script>` line to paste — put it in the page template now and you will not need a second deploy to add it."
domain"site"
name"site_request_upload"
platform_version"1.0.20"
required_scopes["site:write"]
risk"write"
scope"site:write"
title"Site Request Upload"

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

site_request_upload: inputSchema

Результат

null