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

Flow · Подключение

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

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

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

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

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

Add a reference to one existing known-type node in a DISABLED Flow. Writes exactly one native left/right/bottom field, or sets input_from when it is empty. Both nodes must belong to this Flow and match their expected types. No reciprocal links or execution-order validation are implied. Requires exact revision and company-wide automations.update. Does not run Flow.

Параметры запроса
flowId
Flow ID in the server-verified company; the stored Flow must be disabled. обязательно по схеме · string · до символов 160
expectedRevision
Версия, прочитанная перед изменением. обязательно по схеме · string
requestId
Ключ этой операции. Для повтора с теми же аргументами сохраните исходное значение. обязательно по схеме · string · до символов 128
nodeId
Existing native node ID in this Flow. обязательно по схеме · string · до символов 160
nodeType
One of the 13 recorded native node types. Native configuration is accepted separately; this does not activate or execute the handler. обязательно по схеме · string · варианты trigger, webhook, action, if, mapping, filter, fields, limit, merge, calculate, crypto, json, end
targetNodeId
Referenced node in this same Flow. обязательно по схеме · string · до символов 160
targetNodeType
Expected current type of the referenced node. обязательно по схеме · string · варианты trigger, webhook, action, if, mapping, filter, fields, limit, merge, calculate, crypto, json, end
port
Exact native reference field on nodeId. No reverse links or execution-order inference are added; input_from is one data-source reference. обязательно по схеме · string · варианты left, right, bottom, input_from
Что вернёт команда
flowId
Flow ID in the server-verified company; the stored Flow must be disabled. обязательно по схеме · string · до символов 160
nodeId
Existing native node ID in this Flow. обязательно по схеме · string · до символов 160
nodeType
One of the 13 recorded native node types. Native configuration is accepted separately; this does not activate or execute the handler. обязательно по схеме · string · варианты trigger, webhook, action, if, mapping, filter, fields, limit, merge, calculate, crypto, json, end
operation
Committed configuration operation. обязательно по схеме · string · варианты add_node, update_node, remove_node, connect, disconnect, duplicate_node
appliedFromRevision
Exact current revision from flows_get_metadata; any intervening Studio or MCP edit conflicts. обязательно по схеме · string
active
Parent Flow remains disabled. обязательно по схеме · boolean
executionStarted
No Flow, test or node handler was invoked. обязательно по схеме · boolean
Поля и технические схемы
Входные поля и поля ответа flows_connect
Вход · JSON Schema
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "flowId": {
      "type": "string",
      "minLength": 1,
      "maxLength": 160,
      "pattern": "^[A-Za-z0-9_~:@+.-]+$",
      "description": "Flow ID in the server-verified company; the stored Flow must be disabled."
    },
    "expectedRevision": {
      "type": "string",
      "pattern": "^fsv1:-?\\d{1,12}:\\d{1,9}$",
      "description": "Exact current revision from flows_get_metadata; any intervening Studio or MCP edit conflicts."
    },
    "requestId": {
      "type": "string",
      "minLength": 8,
      "maxLength": 128,
      "pattern": "^[A-Za-z0-9_-]+$",
      "description": "Idempotency ID for these exact arguments; retry unchanged after an uncertain response."
    },
    "nodeId": {
      "type": "string",
      "minLength": 1,
      "maxLength": 160,
      "pattern": "^[A-Za-z0-9_~:@+.-]+$",
      "description": "Existing native node ID in this Flow."
    },
    "nodeType": {
      "type": "string",
      "enum": [
        "trigger",
        "webhook",
        "action",
        "if",
        "mapping",
        "filter",
        "fields",
        "limit",
        "merge",
        "calculate",
        "crypto",
        "json",
        "end"
      ],
      "description": "One of the 13 recorded native node types. Native configuration is accepted separately; this does not activate or execute the handler."
    },
    "targetNodeId": {
      "type": "string",
      "minLength": 1,
      "maxLength": 160,
      "pattern": "^[A-Za-z0-9_~:@+.-]+$",
      "description": "Referenced node in this same Flow."
    },
    "targetNodeType": {
      "type": "string",
      "enum": [
        "trigger",
        "webhook",
        "action",
        "if",
        "mapping",
        "filter",
        "fields",
        "limit",
        "merge",
        "calculate",
        "crypto",
        "json",
        "end"
      ],
      "description": "Expected current type of the referenced node."
    },
    "port": {
      "type": "string",
      "enum": [
        "left",
        "right",
        "bottom",
        "input_from"
      ],
      "description": "Exact native reference field on nodeId. No reverse links or execution-order inference are added; input_from is one data-source reference."
    }
  },
  "required": [
    "flowId",
    "expectedRevision",
    "requestId",
    "nodeId",
    "nodeType",
    "targetNodeId",
    "targetNodeType",
    "port"
  ],
  "additionalProperties": false
}
Выход · JSON Schema
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "flowId": {
      "type": "string",
      "minLength": 1,
      "maxLength": 160,
      "pattern": "^[A-Za-z0-9_~:@+.-]+$",
      "description": "Flow ID in the server-verified company; the stored Flow must be disabled."
    },
    "nodeId": {
      "type": "string",
      "minLength": 1,
      "maxLength": 160,
      "pattern": "^[A-Za-z0-9_~:@+.-]+$",
      "description": "Existing native node ID in this Flow."
    },
    "nodeType": {
      "type": "string",
      "enum": [
        "trigger",
        "webhook",
        "action",
        "if",
        "mapping",
        "filter",
        "fields",
        "limit",
        "merge",
        "calculate",
        "crypto",
        "json",
        "end"
      ],
      "description": "One of the 13 recorded native node types. Native configuration is accepted separately; this does not activate or execute the handler."
    },
    "operation": {
      "type": "string",
      "enum": [
        "add_node",
        "update_node",
        "remove_node",
        "connect",
        "disconnect",
        "duplicate_node"
      ],
      "description": "Committed configuration operation."
    },
    "appliedFromRevision": {
      "type": "string",
      "pattern": "^fsv1:-?\\d{1,12}:\\d{1,9}$",
      "description": "Exact current revision from flows_get_metadata; any intervening Studio or MCP edit conflicts."
    },
    "active": {
      "type": "boolean",
      "const": false,
      "description": "Parent Flow remains disabled."
    },
    "executionStarted": {
      "type": "boolean",
      "const": false,
      "description": "No Flow, test or node handler was invoked."
    }
  },
  "required": [
    "flowId",
    "nodeId",
    "nodeType",
    "operation",
    "appliedFromRevision",
    "active",
    "executionStarted"
  ],
  "additionalProperties": false
}