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

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

site_request_upload

Обновлено

Step 1 of publishing a static site. `host`: one of `hosts` from `site_list_pages` (platform site address or a verified custom domain). Declare each file (path, size_bytes, content_type, optional `references`) for an upload URL per file and an `upload_id`. `mode: merge` (default) changes only the declared files; `replace` is a full snapshot that removes omitted files. Access rules: `site_gate_set`, never a bundle. PUT each file with exactly its declared byte length, then call `site_publish` with `host` and `upload_id`. A file with a `source` is fetched by the server (`status: fetching`): do not PUT it. `site_publish` is the status check: 409 SITE_SOURCE_FETCH_PENDING loses nothing, call it again; a failed source is named by file and code, fix it and request a new ticket. 409 SITE_BUNDLE_STALE: the site changed meanwhile; request a new ticket. Bundle = the HTML pages plus each file they use (image, video, font, CSS, JS) as its own file. A large `data:` URL in a tag is SITE_HTML_TAG_TOO_LARGE: move it into a file linked relatively and listed in the page's `references`. A video over the plan's size is SITE_VIDEO_TOO_LARGE: compress it or embed from a video host. The daily upload budget (MINT_QUOTA_EXCEEDED; MINT_QUOTA_UNAVAILABLE: retry after `retry_after`) and plan limits are checked before any URL. Platform-owned on every site address: /auth, /checkout, /cart, /account, /refund, /l, /f, /product, /events, /booking, /widget, /miniapp, /api, /__telegafirst, /_fragments/ (bar consent-banner.html) and all below. A file there or a service-worker script (sw.js, *-sw.js) refuses the whole bundle with SITE_PATH_RESERVED. A file at /, /shop, /bio, /privacy, /terms or /refunds replaces that platform page; /shop is always the catalog. Legal pages (/terms, /privacy, /legal, the consent documents) are the platform's: link the first three in every footer; never write your own offer, policy or consent pages. Add the `attribution_snippet` <script> from `site_publish` to pages that link to the bot.

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

required_scopes: ALL.

ПолеЗначение
description"Step 1 of publishing a static site. `host`: one of `hosts` from `site_list_pages` (platform site address or a verified custom domain). Declare each file (path, size_bytes, content_type, optional `references`) for an upload URL per file and an `upload_id`. `mode: merge` (default) changes only the declared files; `replace` is a full snapshot that removes omitted files. Access rules: `site_gate_set`, never a bundle. PUT each file with exactly its declared byte length, then call `site_publish` with `host` and `upload_id`. A file with a `source` is fetched by the server (`status: fetching`): do not PUT it. `site_publish` is the status check: 409 SITE_SOURCE_FETCH_PENDING loses nothing, call it again; a failed source is named by file and code, fix it and request a new ticket. 409 SITE_BUNDLE_STALE: the site changed meanwhile; request a new ticket. Bundle = the HTML pages plus each file they use (image, video, font, CSS, JS) as its own file. A large `data:` URL in a tag is SITE_HTML_TAG_TOO_LARGE: move it into a file linked relatively and listed in the page's `references`. A video over the plan's size is SITE_VIDEO_TOO_LARGE: compress it or embed from a video host. The daily upload budget (MINT_QUOTA_EXCEEDED; MINT_QUOTA_UNAVAILABLE: retry after `retry_after`) and plan limits are checked before any URL. Platform-owned on every site address: /auth, /checkout, /cart, /account, /refund, /l, /f, /product, /events, /booking, /widget, /miniapp, /api, /__telegafirst, /_fragments/ (bar consent-banner.html) and all below. A file there or a service-worker script (sw.js, *-sw.js) refuses the whole bundle with SITE_PATH_RESERVED. A file at /, /shop, /bio, /privacy, /terms or /refunds replaces that platform page; /shop is always the catalog. Legal pages (/terms, /privacy, /legal, the consent documents) are the platform's: link the first three in every footer; never write your own offer, policy or consent pages. Add the `attribution_snippet` <script> from `site_publish` to pages that link to the bot."
domain"site"
name"site_request_upload"
platform_version"1.0.34"
required_scopes["site:write"]
risk"write"
scope"site:write"
title"Site Request Upload"

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

site_request_upload: inputSchema

Результат

site_request_upload: outputSchema