{"name":"site_content_collections","title":"Опубликовать кейсы и статьи","section":"Контент и оформление","mode":"write","url":"/tools/site_content_collections","blurb":"Управляет коллекциями с повторяемым шаблоном и постоянной страницей для каждой записи.","aliases":"","kind":"Инструмент","examples":[{"label":"Рабочая задача","prompt":"Подготовь коллекцию «Проекты ателье» с названием, обложкой и описанием работы. Покажи структуру и какой адрес получит запись.","check":"Управляет коллекциями с повторяемым шаблоном и постоянной страницей для каждой записи."},{"label":"Выбрать режим","prompt":"Для задачи «Опубликовать кейсы и статьи» сравни режимы contract и list инструмента site_content_collections. Какой подойдёт в моём случае и какие данные нужно подготовить?","check":"Сопоставить два режима и их аргументы."},{"label":"После сбоя","prompt":"При выполнении «Опубликовать кейсы и статьи» связь прервалась после отправки. Для site_content_collections проверь исходный ключ операции и текущее состояние объекта перед решением о повторе.","check":"Сопоставить результат с исходной операцией."}],"inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","oneOf":[{"type":"object","properties":{"operation":{"type":"string","const":"contract"},"siteId":{"type":"string","pattern":"^[A-Za-z0-9_~:@+.-]{1,128}$"}},"required":["operation","siteId"],"additionalProperties":false},{"type":"object","properties":{"operation":{"type":"string","const":"list"},"siteId":{"type":"string","pattern":"^[A-Za-z0-9_~:@+.-]{1,128}$"},"after":{"type":"string","pattern":"^[A-Za-z0-9_~:@+.-]{1,128}$"},"limit":{"default":20,"type":"integer","minimum":1,"maximum":40},"collection":{"type":"string","maxLength":80,"pattern":"^[a-z0-9]+(?:-[a-z0-9]+)*$"}},"required":["operation","siteId","limit"],"additionalProperties":false},{"type":"object","properties":{"operation":{"type":"string","const":"get"},"siteId":{"type":"string","pattern":"^[A-Za-z0-9_~:@+.-]{1,128}$"},"entryId":{"type":"string","pattern":"^[A-Za-z0-9_~:@+.-]{1,128}$"}},"required":["operation","siteId","entryId"],"additionalProperties":false},{"type":"object","properties":{"operation":{"type":"string","const":"save"},"siteId":{"type":"string","pattern":"^[A-Za-z0-9_~:@+.-]{1,128}$"},"entryId":{"type":"string","pattern":"^[A-Za-z0-9_~:@+.-]{1,128}$"},"values":{"type":"object","properties":{"collection":{"type":"string","maxLength":80,"pattern":"^[a-z0-9]+(?:-[a-z0-9]+)*$"},"slug":{"type":"string","maxLength":80,"pattern":"^[a-z0-9]+(?:-[a-z0-9]+)*$"},"kind":{"type":"string","enum":["work","case","lookbook","article","location"]},"translations":{"type":"object","propertyNames":{"type":"string","pattern":"^[a-z]{2,3}(?:-[A-Za-z0-9]{2,8})*$"},"additionalProperties":{"type":"object","properties":{"title":{"type":"string","minLength":1,"maxLength":160},"summary":{"default":"","type":"string","maxLength":500},"body":{"default":"","type":"string","maxLength":20000}},"required":["title","summary","body"],"additionalProperties":false}},"mediaIds":{"default":[],"maxItems":20,"type":"array","items":{"type":"string","pattern":"^[A-Za-z0-9_~:@+.-]{1,128}$"}},"productIds":{"default":[],"maxItems":20,"type":"array","items":{"type":"string","pattern":"^[A-Za-z0-9_~:@+.-]{1,128}$"}},"employeeId":{"type":"string","pattern":"^[A-Za-z0-9_~:@+.-]{1,128}$"},"establishmentId":{"type":"string","pattern":"^[A-Za-z0-9_~:@+.-]{1,128}$"},"bookingPath":{"default":"/booking","type":"string","maxLength":180,"pattern":"^\\/(?:[a-zA-Z0-9_-]+\\/?)*$"},"published":{"default":false,"type":"boolean"}},"required":["collection","slug","kind","translations","mediaIds","productIds","bookingPath","published"],"additionalProperties":false},"expectedRevision":{"type":"integer","minimum":0,"maximum":9007199254740991},"idempotencyKey":{"type":"string","pattern":"^[A-Za-z0-9_-]{8,128}$"}},"required":["operation","siteId","values","expectedRevision","idempotencyKey"],"additionalProperties":false},{"type":"object","properties":{"operation":{"type":"string","const":"retire"},"siteId":{"type":"string","pattern":"^[A-Za-z0-9_~:@+.-]{1,128}$"},"entryId":{"type":"string","pattern":"^[A-Za-z0-9_~:@+.-]{1,128}$"},"expectedRevision":{"type":"integer","minimum":0,"maximum":9007199254740991},"idempotencyKey":{"type":"string","pattern":"^[A-Za-z0-9_-]{8,128}$"}},"required":["operation","siteId","entryId","expectedRevision","idempotencyKey"],"additionalProperties":false}]},"outputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","propertyNames":{"type":"string"},"additionalProperties":{"$ref":"#/$defs/__schema0"},"$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":{"operation":"contract","siteId":"site_demo"}}