MCP Control
Файлы и медиа · Изменение

Облако · Библиотека · Изменение · Метаданные

cloud_library_update_metadata
Фотокамера и образцы цвета

Попробуйте три запроса

Подготовить
  1. Вы указываетеId записи
  2. ПомощникПодготовка
  3. Вы получаетеПредпросмотр
Запрос в чат
Подготовь «Облако / Библиотека / Изменение / Метаданные». Для изменения нужны ID записи, версия записи. Покажи объект и ожидаемый эффект до выполнения.
Что входит в подготовку
id
Id записи
revision
Версия записи
metadata
Параметр
Применить
  1. Вы указываетеСогласованные значения
  2. ПомощникОдин вызов
  3. Вы получаетеОтвет операции
Запрос в чат
На учебной записи подготовь «Облако / Библиотека / Изменение / Метаданные» с параметром revision = 4. Покажи остальные обязательные значения и выполни действие, когда согласованы все поля.
Фрагмент учебных параметров
revision
4
Проверить итог
  1. Вы указываетеИсходный ответ
  2. ПомощникСверка результата
  3. Вы получаетеПодтверждение
Запрос в чат
Проверь результат «Облако / Библиотека / Изменение / Метаданные» по исходному ответу. Покажи companyId. Объясни, чем подтвердить эффект для выбранного объекта.
Как сверить изменение
  1. До измененияПрочитать версию
  2. При записиПередать выбранную версию
  3. После ответаПеречитать объект
Как работает действие

Этот вызов может изменить рабочие данные. Согласуйте точный объект, новые значения и ожидаемый результат. Присвойте операции стабильный requestId. При повторе той же операции используйте прежний ключ и те же значения. Прочитайте актуальную версию записи перед подготовкой запроса.

Описание разработчика

Edit only supplied file metadata. Send the current revision from get. Per-platform yes/no/unset decisions and reasons control permitted use.

Параметры запроса
id
Идентификатор выбранной записи. обязательно по схеме · string
revision
Текущая версия выбранной записи. обязательно по схеме · integer · максимум 9007199254740991
metadata
Native metadata value; use the value and type returned by the corresponding service. обязательно по схеме · object
requestId
Ключ этой операции. Для повтора с теми же аргументами сохраните исходное значение. обязательно по схеме · string
Что вернёт команда
companyId
Native companyId value; use the value and type returned by the corresponding service. обязательно по схеме · string
Поля и технические схемы
Входные поля и поля ответа cloud_library_update_metadata
Вход · JSON Schema
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "id": {
      "type": "string",
      "format": "uuid",
      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
      "description": "Native id value; use the value and type returned by the corresponding service."
    },
    "revision": {
      "type": "integer",
      "exclusiveMinimum": 0,
      "maximum": 9007199254740991,
      "description": "Native revision value; use the value and type returned by the corresponding service."
    },
    "metadata": {
      "type": "object",
      "properties": {
        "title": {
          "type": "string",
          "minLength": 1,
          "maxLength": 240,
          "description": "Native title value; use the value and type returned by the corresponding service."
        },
        "purpose": {
          "type": "string",
          "maxLength": 8000,
          "description": "Native purpose value; use the value and type returned by the corresponding service."
        },
        "category": {
          "type": "string",
          "maxLength": 190,
          "description": "Native category value; use the value and type returned by the corresponding service."
        },
        "folder": {
          "type": "string",
          "maxLength": 190,
          "description": "Native folder value; use the value and type returned by the corresponding service."
        },
        "tags": {
          "maxItems": 50,
          "type": "array",
          "items": {
            "type": "string",
            "minLength": 1,
            "maxLength": 128
          },
          "description": "Native tags value; use the value and type returned by the corresponding service."
        },
        "services": {
          "maxItems": 50,
          "type": "array",
          "items": {
            "type": "string",
            "minLength": 1,
            "maxLength": 128
          },
          "description": "Native services value; use the value and type returned by the corresponding service."
        },
        "products": {
          "maxItems": 50,
          "type": "array",
          "items": {
            "type": "string",
            "minLength": 1,
            "maxLength": 128
          },
          "description": "Native products value; use the value and type returned by the corresponding service."
        },
        "serviceIds": {
          "maxItems": 50,
          "type": "array",
          "items": {
            "type": "string",
            "minLength": 1,
            "maxLength": 128,
            "pattern": "^[\\w~:@+.-]+$"
          },
          "description": "Native serviceIds value; use the value and type returned by the corresponding service."
        },
        "productIds": {
          "maxItems": 50,
          "type": "array",
          "items": {
            "type": "string",
            "minLength": 1,
            "maxLength": 128,
            "pattern": "^[\\w~:@+.-]+$"
          },
          "description": "Native productIds value; use the value and type returned by the corresponding service."
        },
        "channelDecisions": {
          "type": "object",
          "propertyNames": {
            "type": "string",
            "enum": [
              "instagram",
              "facebook",
              "youtube",
              "tiktok",
              "threads",
              "telegram",
              "whatsapp"
            ]
          },
          "additionalProperties": {
            "type": "string",
            "enum": [
              "yes",
              "no",
              "unset"
            ]
          },
          "description": "Native channelDecisions value; use the value and type returned by the corresponding service."
        },
        "channelReasons": {
          "type": "object",
          "propertyNames": {
            "type": "string",
            "enum": [
              "instagram",
              "facebook",
              "youtube",
              "tiktok",
              "threads",
              "telegram",
              "whatsapp"
            ]
          },
          "additionalProperties": {
            "type": "string",
            "maxLength": 190
          },
          "description": "Native channelReasons value; use the value and type returned by the corresponding service."
        },
        "stars": {
          "type": "boolean",
          "description": "Native stars value; use the value and type returned by the corresponding service."
        },
        "w": {
          "type": "integer",
          "exclusiveMinimum": 0,
          "maximum": 150000,
          "description": "Native w value; use the value and type returned by the corresponding service."
        },
        "h": {
          "type": "integer",
          "exclusiveMinimum": 0,
          "maximum": 150000,
          "description": "Native h value; use the value and type returned by the corresponding service."
        },
        "duration": {
          "type": "string",
          "maxLength": 190,
          "description": "Native duration value; use the value and type returned by the corresponding service."
        },
        "src": {
          "type": "string",
          "maxLength": 80000,
          "pattern": "^data:image\\/webp;base64,[A-Za-z0-9+/=]+$",
          "description": "Native src value; use the value and type returned by the corresponding service."
        },
        "voiceNote": {
          "anyOf": [
            {
              "type": "object",
              "properties": {
                "id": {
                  "type": "string",
                  "maxLength": 100,
                  "description": "Native id value; use the value and type returned by the corresponding service."
                },
                "name": {
                  "type": "string",
                  "maxLength": 190,
                  "description": "Native name value; use the value and type returned by the corresponding service."
                },
                "mime": {
                  "type": "string",
                  "maxLength": 190,
                  "description": "Native mime value; use the value and type returned by the corresponding service."
                },
                "duration": {
                  "description": "Native duration value; use the value and type returned by the corresponding service.",
                  "type": "string",
                  "maxLength": 190
                }
              },
              "required": [
                "id",
                "name",
                "mime"
              ],
              "additionalProperties": false
            },
            {
              "type": "null"
            }
          ],
          "description": "Native voiceNote value; use the value and type returned by the corresponding service."
        },
        "needsReview": {
          "type": "boolean",
          "description": "Native needsReview value; use the value and type returned by the corresponding service."
        },
        "transcript": {
          "type": "string",
          "maxLength": 32000,
          "description": "Native transcript value; use the value and type returned by the corresponding service."
        },
        "voiceTranscript": {
          "type": "string",
          "maxLength": 32000,
          "description": "Native voiceTranscript value; use the value and type returned by the corresponding service."
        }
      },
      "additionalProperties": false,
      "description": "Native metadata value; use the value and type returned by the corresponding service."
    },
    "requestId": {
      "type": "string",
      "pattern": "^[A-Za-z0-9_-]{8,128}$",
      "description": "Stable request ID for these exact arguments. Keep it if the response is uncertain."
    }
  },
  "required": [
    "id",
    "revision",
    "metadata",
    "requestId"
  ],
  "additionalProperties": false
}
Выход · JSON Schema
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "companyId": {
      "type": "string",
      "description": "Native companyId value; use the value and type returned by the corresponding service."
    }
  },
  "required": [
    "companyId"
  ],
  "additionalProperties": {}
}