MCP Control
Автоматизации · Изменение

Flow · Активация

flows_activate
Карточки процесса, соединённые нитями

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

Подготовить
  1. Вы указываетеСценарий
  2. ПомощникПодготовка
  3. Вы получаетеПредпросмотр
Запрос в чат
Подготовь «Flow / Активация». Для изменения нужны сценарий, testRequestIds. Покажи объект и ожидаемый эффект до выполнения.
Что входит в подготовку
flowId
Сценарий
testRequestIds
Параметр
Применить
  1. Вы указываетеСогласованные значения
  2. ПомощникОдин вызов
  3. Вы получаетеОтвет операции
Запрос в чат
На учебной записи подготовь «Flow / Активация» с параметром flowId = DEMO-101. Покажи остальные обязательные значения и выполни действие, когда согласованы все поля.
Фрагмент учебных параметров
flowId
DEMO-101
Проверить итог
  1. Вы указываетеИсходный ответ
  2. ПомощникСверка результата
  3. Вы получаетеПодтверждение
Запрос в чат
Проверь результат «Flow / Активация» по исходному ответу. Покажи сценарий, appliedFromRevision. Объясни, чем подтвердить эффект для выбранного объекта.
Как сверить изменение
  1. До измененияПрочитать версию
  2. При записиПередать выбранную версию
  3. После ответаПеречитать объект
Как работает действие

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

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

Activate a DISABLED native Flow only after recent valid safe tests at the exact current revision cover every enabled node. Current company-wide Flow authority and all test receipts are checked in the same Firestore transaction as isActive=true. This action does not invoke a handler directly; native triggers can execute after activation.

Параметры запроса
flowId
Native Flow in the verified company. обязательно по схеме · string
expectedRevision
Версия, прочитанная перед изменением. обязательно по схеме · string
requestId
Ключ этой операции. Для повтора с теми же аргументами сохраните исходное значение. обязательно по схеме · string
testRequestIds
Recent valid flows_test receipts from this same account and client, covering every enabled node at this revision. обязательно по схеме · array · до элементов 20
Что вернёт команда
flowId
Native Flow changed in the verified company. обязательно по схеме · string
appliedFromRevision
Exact current native Flow revision returned by flows_get_metadata. обязательно по схеме · string
active
Native parent isActive after the atomic change. обязательно по схеме · boolean
testCount
Number of safe test receipts checked for activation; zero for deactivation. обязательно по схеме · integer · минимум 0 · максимум 20
directExecutionStarted
The Action changes configuration only; enabled triggers may subsequently run in the native runtime. обязательно по схеме · boolean
Поля и технические схемы
Входные поля и поля ответа flows_activate
Вход · JSON Schema
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "flowId": {
      "type": "string",
      "pattern": "^[A-Za-z0-9_~:@+.-]{1,160}$",
      "description": "Native Flow in the verified company."
    },
    "expectedRevision": {
      "type": "string",
      "pattern": "^fsv1:-?\\d{1,12}:\\d{1,9}$",
      "description": "Exact current native Flow revision returned by flows_get_metadata."
    },
    "requestId": {
      "type": "string",
      "pattern": "^[A-Za-z0-9_-]{8,128}$",
      "description": "Stable idempotency key for this exact activation change."
    },
    "testRequestIds": {
      "minItems": 1,
      "maxItems": 20,
      "type": "array",
      "items": {
        "type": "string",
        "pattern": "^[A-Za-z0-9_-]{8,128}$",
        "description": "Stable idempotency key for this exact activation change."
      },
      "description": "Recent valid flows_test receipts from this same account and client, covering every enabled node at this revision."
    }
  },
  "required": [
    "flowId",
    "expectedRevision",
    "requestId",
    "testRequestIds"
  ],
  "additionalProperties": false
}
Выход · JSON Schema
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "flowId": {
      "type": "string",
      "pattern": "^[A-Za-z0-9_~:@+.-]{1,160}$",
      "description": "Native Flow changed in the verified company."
    },
    "appliedFromRevision": {
      "type": "string",
      "pattern": "^fsv1:-?\\d{1,12}:\\d{1,9}$",
      "description": "Exact current native Flow revision returned by flows_get_metadata."
    },
    "active": {
      "type": "boolean",
      "description": "Native parent isActive after the atomic change."
    },
    "testCount": {
      "type": "integer",
      "minimum": 0,
      "maximum": 20,
      "description": "Number of safe test receipts checked for activation; zero for deactivation."
    },
    "directExecutionStarted": {
      "type": "boolean",
      "const": false,
      "description": "The Action changes configuration only; enabled triggers may subsequently run in the native runtime."
    }
  },
  "required": [
    "flowId",
    "appliedFromRevision",
    "active",
    "testCount",
    "directExecutionStarted"
  ],
  "additionalProperties": false
}