{"name":"site_preview","title":"Открыть предпросмотр сайта","section":"Исходники и публикация","mode":"write","url":"/tools/site_preview","blurb":"Выдаёт закрытую ссылку с ограниченным сроком на просмотр выбранной версии.","aliases":"предпросмотр|показать черновик|посмотреть черновик|предварительный просмотр|открыть предпросмотр","kind":"Инструмент","examples":[{"label":"Рабочая задача","prompt":"Открой предпросмотр проверенного черновика «Ателье». Дай ссылку и укажи, какую версию я увижу.","check":"Выдаёт закрытую ссылку с ограниченным сроком на просмотр выбранной версии."},{"label":"Для коллеги","prompt":"Дай ссылку на предпросмотр выбранной проверенной версии. Укажи срок доступа и какую страницу открыть.","check":"Закрытая ссылка, версия и срок."},{"label":"После новой правки","prompt":"Вчерашняя ссылка показывает старый заголовок. Сверь versionId последней правки и открой предпросмотр именно этой сборки.","check":"Ссылка на нужную сборку."}],"inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"siteId":{"type":"string","pattern":"^[A-Za-z0-9_~:@+.-]{1,128}$"},"versionId":{"type":"string","pattern":"^[A-Za-z0-9_~:@+.-]{1,128}$"},"environment":{"type":"object","properties":{"mode":{"default":"web","type":"string","enum":["web","app"]},"platform":{"type":"string","enum":["ios","android"]},"device":{"default":"browser","type":"string","enum":["browser","iphone","ipad","android"]},"language":{"default":"en","type":"string","pattern":"^[a-z]{2,3}(?:-[A-Za-z0-9]{2,8})*$"},"safeArea":{"default":{"top":0,"right":0,"bottom":0,"left":0},"type":"object","properties":{"top":{"type":"number","minimum":0,"maximum":200},"right":{"type":"number","minimum":0,"maximum":200},"bottom":{"type":"number","minimum":0,"maximum":200},"left":{"type":"number","minimum":0,"maximum":200}},"required":["top","right","bottom","left"],"additionalProperties":false},"nativeApi":{"default":"none","type":"string","enum":["none","legacy","custom"]},"bridgeVersion":{"default":1,"type":"integer","minimum":1,"maximum":100},"appVersion":{"type":"string","maxLength":40},"buildNumber":{"type":"string","maxLength":40}},"required":["mode","device","language","safeArea","nativeApi","bridgeVersion"],"additionalProperties":false}},"required":["siteId","versionId"],"additionalProperties":false},"outputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"url":{"type":"string","format":"uri"},"expiresAt":{"type":"number"},"versionId":{"type":"string","pattern":"^[A-Za-z0-9_~:@+.-]{1,128}$"},"environment":{"type":"object","properties":{"mode":{"default":"web","type":"string","enum":["web","app"]},"platform":{"type":"string","enum":["ios","android"]},"device":{"default":"browser","type":"string","enum":["browser","iphone","ipad","android"]},"language":{"default":"en","type":"string","pattern":"^[a-z]{2,3}(?:-[A-Za-z0-9]{2,8})*$"},"safeArea":{"default":{"top":0,"right":0,"bottom":0,"left":0},"type":"object","properties":{"top":{"type":"number","minimum":0,"maximum":200},"right":{"type":"number","minimum":0,"maximum":200},"bottom":{"type":"number","minimum":0,"maximum":200},"left":{"type":"number","minimum":0,"maximum":200}},"required":["top","right","bottom","left"],"additionalProperties":false},"nativeApi":{"default":"none","type":"string","enum":["none","legacy","custom"]},"bridgeVersion":{"default":1,"type":"integer","minimum":1,"maximum":100},"appVersion":{"type":"string","maxLength":40},"buildNumber":{"type":"string","maxLength":40}},"required":["mode","device","language","safeArea","nativeApi","bridgeVersion"],"additionalProperties":false},"verification":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"$ref":"#/$defs/__schema0"}}},"required":["url","expiresAt","versionId"],"additionalProperties":false,"$defs":{"__schema0":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"null"},{"type":"array","items":{"$ref":"#/$defs/__schema0"}},{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"$ref":"#/$defs/__schema0"}}]}}},"argumentExample":{"siteId":"site_demo","versionId":"ver_demo"}}