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

Flow · Просмотр · Топология

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

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

Получить данные
  1. Вы указываетеСценарий
  2. ПомощникЧтение
  3. Вы получаетеПоля ответа
Запрос в чат
Для задачи «Flow / Просмотр / Топология» выполни чтение по выбранной записи (сценарий). Выведи кратко: сценарий, версия записи.
Что искать в ответе
flowId
Сценарий
revision
Версия записи
active
Активность
Следующая страница
  1. Вы указываетеПредыдущий ответ
  2. ПомощникПродолжение
  3. Вы получаетеСледующая страница
Запрос в чат
Продолжи «Flow / Просмотр / Топология» с позиции прошлого ответа. Сохрани фильтры и размер страницы 3. Покажи новые строки отдельно.
Как листать выдачу
Страница 1До 3 строк
Страница 2Продолжение
Разобрать ответ
  1. Вы указываетеПолученный ответ
  2. ПомощникРазбор значений
  3. Вы получаетеКраткое пояснение
Запрос в чат
На основании уже полученного ответа «Flow / Просмотр / Топология» объясни сценарий, версия записи. Отметь отсутствующие значения.
Поля для проверки
flowId
Сценарий
revision
Версия записи
active
Активность
Как работает действие

Это чтение. Выберите запись или задайте фильтры в доступной компании. Прочитайте актуальную версию записи перед подготовкой запроса. При постраничном чтении используйте продолжение ответа с теми же фильтрами.

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

Read native Flow topology and revision using the same company-scoped graph reader. Configuration fields are omitted. Does not execute Flow.

Параметры запроса
flowId
Native Flow ID in the current verified company. обязательно по схеме · string · до символов 160
offset
Смещение из предыдущей страницы или начальное значение из схемы. обязательно по схеме · integer · по умолчанию 0 · минимум 0 · максимум 500
limit
Максимальное число элементов на этой странице. обязательно по схеме · integer · по умолчанию 10 · минимум 1 · максимум 30
expectedRevision
Версия, прочитанная перед изменением. необязательно · string
Что вернёт команда
flowId
Native Flow ID in the current verified company. обязательно по схеме · string · до символов 160
revision
Exact Flow document update-time revision; continuation requires this revision. обязательно по схеме · string
active
Stored parent isActive; null when not configured. обязательно по схеме · boolean / null
nodes
Revision-bound native graph page with credentials omitted. обязательно по схеме · array · до элементов 30
nodeCount
Total stored node count. обязательно по схеме · integer · минимум -9007199254740991 · максимум 500
nextOffset
Смещение для получения следующей страницы. обязательно по схеме · integer / null
executionChecked
No runtime or handler was invoked. обязательно по схеме · boolean
Поля и технические схемы
Входные поля и поля ответа flows_get_topology
Вход · 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": "Native Flow ID in the current verified company."
    },
    "offset": {
      "default": 0,
      "description": "Native items offset. Nonzero offset requires expectedRevision.",
      "type": "integer",
      "minimum": 0,
      "maximum": 500
    },
    "limit": {
      "default": 10,
      "description": "Maximum returned nodes; the 48 KiB page budget may yield fewer.",
      "type": "integer",
      "minimum": 1,
      "maximum": 30
    },
    "expectedRevision": {
      "description": "Expected revision, required for continuation.",
      "type": "string",
      "pattern": "^fsv1:-?\\d{1,12}:\\d{1,9}$"
    }
  },
  "required": [
    "flowId",
    "offset",
    "limit"
  ],
  "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": "Native Flow ID in the current verified company."
    },
    "revision": {
      "type": "string",
      "pattern": "^fsv1:-?\\d{1,12}:\\d{1,9}$",
      "description": "Exact Flow document update-time revision; continuation requires this revision."
    },
    "active": {
      "description": "Stored parent isActive; null when not configured.",
      "type": [
        "boolean",
        "null"
      ]
    },
    "nodes": {
      "maxItems": 30,
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "minLength": 1,
            "maxLength": 160,
            "pattern": "^[A-Za-z0-9_~:@+.-]+$",
            "description": "Native node ID."
          },
          "type": {
            "type": "string",
            "enum": [
              "trigger",
              "webhook",
              "action",
              "if",
              "mapping",
              "filter",
              "fields",
              "limit",
              "merge",
              "calculate",
              "crypto",
              "json",
              "end"
            ],
            "description": "Native handler type."
          },
          "name": {
            "type": "string",
            "maxLength": 300,
            "description": "Native name; for action nodes this selects the existing handler."
          },
          "active": {
            "type": "boolean",
            "description": "Stored node flag; never an execution permission."
          },
          "left": {
            "maxItems": 500,
            "type": "array",
            "items": {
              "type": "string",
              "minLength": 1,
              "maxLength": 160,
              "pattern": "^[A-Za-z0-9_~:@+.-]+$"
            },
            "description": "Native left references; if true branch, otherwise dependencies."
          },
          "right": {
            "maxItems": 500,
            "type": "array",
            "items": {
              "type": "string",
              "minLength": 1,
              "maxLength": 160,
              "pattern": "^[A-Za-z0-9_~:@+.-]+$"
            },
            "description": "Native right references; if false branch, otherwise dependencies."
          },
          "bottom": {
            "maxItems": 500,
            "type": "array",
            "items": {
              "type": "string",
              "minLength": 1,
              "maxLength": 160,
              "pattern": "^[A-Za-z0-9_~:@+.-]+$"
            },
            "description": "Native continuation references."
          },
          "input_from": {
            "anyOf": [
              {
                "type": "string",
                "minLength": 1,
                "maxLength": 160,
                "pattern": "^[A-Za-z0-9_~:@+.-]+$"
              },
              {
                "type": "string",
                "const": ""
              }
            ],
            "description": "Native input source reference."
          },
          "configuration": {
            "anyOf": [
              {
                "type": "object",
                "properties": {
                  "methed": {
                    "type": "string",
                    "maxLength": 300,
                    "description": "Native method/event spelling. Examples: INSERT for an action named Task, or the native trigger event."
                  },
                  "url": {
                    "type": "string",
                    "maxLength": 4000,
                    "description": "Native outbound destination, stored without making a request. Credentials must remain in the existing secure configuration."
                  },
                  "input": {
                    "description": "Complete replacement of native input rowdata. Omit to preserve; [] clears.",
                    "maxItems": 100,
                    "type": "array",
                    "items": {
                      "$ref": "#/$defs/_mcp6"
                    }
                  },
                  "output": {
                    "description": "Complete replacement of native output rowdata. Omit to preserve; [] clears.",
                    "maxItems": 100,
                    "type": "array",
                    "items": {
                      "$ref": "#/$defs/_mcp6"
                    }
                  },
                  "query": {
                    "description": "Complete replacement of native query rowdata. Omit to preserve; [] clears.",
                    "maxItems": 100,
                    "type": "array",
                    "items": {
                      "$ref": "#/$defs/_mcp6"
                    }
                  },
                  "headers": {
                    "description": "Complete replacement of native header rowdata. Plaintext authentication values are not accepted.",
                    "maxItems": 100,
                    "type": "array",
                    "items": {
                      "$ref": "#/$defs/_mcp6"
                    }
                  },
                  "list": {
                    "description": "Native list-processing flag; configuration does not process business data.",
                    "type": "boolean"
                  },
                  "authentication": {
                    "description": "Existing native authentication mode. Credentials are configured through the secure Chat UI, never literal secrets.",
                    "type": "string",
                    "enum": [
                      "none",
                      "api key",
                      "bearer token",
                      "basic auth",
                      "oauth2"
                    ]
                  },
                  "key_location": {
                    "description": "Native API key placement, required with api key authentication.",
                    "type": "string",
                    "enum": [
                      "header",
                      "query",
                      "body"
                    ]
                  },
                  "key_name": {
                    "type": "string",
                    "maxLength": 100,
                    "description": "Native API key parameter name; not the key value."
                  }
                },
                "additionalProperties": false,
                "description": "Partial native node configuration. Only supplied fields change; row arrays replace in full. Parent stays disabled and no handler runs."
              },
              {
                "type": "null"
              }
            ],
            "description": "Validated non-secret native configuration, or null when absent/unsupported/protected. Null is not a reset instruction."
          },
          "configurationRedacted": {
            "type": "boolean",
            "description": "True when stored protected or unsupported settings were omitted. Preserve them when editing other fields."
          }
        },
        "required": [
          "id",
          "type",
          "name",
          "active",
          "left",
          "right",
          "bottom",
          "input_from",
          "configuration",
          "configurationRedacted"
        ],
        "additionalProperties": false
      },
      "description": "Revision-bound native graph page with credentials omitted."
    },
    "nodeCount": {
      "type": "integer",
      "minimum": -9007199254740991,
      "maximum": 500,
      "description": "Total stored node count."
    },
    "nextOffset": {
      "anyOf": [
        {
          "type": "integer",
          "minimum": -9007199254740991,
          "maximum": 9007199254740991
        },
        {
          "type": "null"
        }
      ],
      "description": "Continuation offset, or null when complete."
    },
    "executionChecked": {
      "type": "boolean",
      "const": false,
      "description": "No runtime or handler was invoked."
    }
  },
  "required": [
    "flowId",
    "revision",
    "active",
    "nodes",
    "nodeCount",
    "nextOffset",
    "executionChecked"
  ],
  "additionalProperties": false,
  "$defs": {
    "_mcp6": {
      "type": "object",
      "properties": {
        "row": {
          "type": "string",
          "maxLength": 300,
          "description": "Native case-sensitive property path or configuration key."
        },
        "name": {
          "$ref": "#/$defs/_mcp0"
        },
        "type": {
          "$ref": "#/$defs/_mcp1"
        },
        "required": {
          "description": "Native required flag.",
          "type": "boolean"
        },
        "list": {
          "description": "Native array flag.",
          "type": "boolean"
        },
        "parent": {
          "type": "string",
          "maxLength": 300,
          "description": "Native parent property path."
        },
        "json": {
          "$ref": "#/$defs/_mcp5"
        }
      },
      "required": [
        "row"
      ],
      "additionalProperties": false
    },
    "_mcp0": {
      "type": "string",
      "maxLength": 16000,
      "description": "Native literal value or data binding such as {local.order.Amount}. Stored without resolving it."
    },
    "_mcp1": {
      "type": "string",
      "maxLength": 80,
      "description": "Native row type or condition operator (for example number, json, string, >, ==)."
    },
    "_mcp5": {
      "description": "Native nested rowdata; maximum three row levels.",
      "maxItems": 100,
      "type": "array",
      "items": {
        "$ref": "#/$defs/_mcp4"
      }
    },
    "_mcp4": {
      "type": "object",
      "properties": {
        "row": {
          "type": "string",
          "maxLength": 300,
          "description": "Native case-sensitive property path or configuration key."
        },
        "name": {
          "$ref": "#/$defs/_mcp0"
        },
        "type": {
          "$ref": "#/$defs/_mcp1"
        },
        "required": {
          "description": "Native required flag.",
          "type": "boolean"
        },
        "list": {
          "description": "Native array flag.",
          "type": "boolean"
        },
        "parent": {
          "type": "string",
          "maxLength": 300,
          "description": "Native parent property path."
        },
        "json": {
          "$ref": "#/$defs/_mcp3"
        }
      },
      "required": [
        "row"
      ],
      "additionalProperties": false
    },
    "_mcp3": {
      "description": "Native rowdata children.",
      "maxItems": 100,
      "type": "array",
      "items": {
        "$ref": "#/$defs/_mcp2"
      }
    },
    "_mcp2": {
      "type": "object",
      "properties": {
        "row": {
          "type": "string",
          "maxLength": 300,
          "description": "Native case-sensitive property path or configuration key."
        },
        "name": {
          "$ref": "#/$defs/_mcp0"
        },
        "type": {
          "$ref": "#/$defs/_mcp1"
        },
        "required": {
          "description": "Native required flag.",
          "type": "boolean"
        },
        "list": {
          "description": "Native array flag.",
          "type": "boolean"
        },
        "parent": {
          "type": "string",
          "maxLength": 300,
          "description": "Native parent property path."
        },
        "json": {
          "description": "Empty leaf children.",
          "maxItems": 0,
          "type": "array",
          "items": {
            "not": {}
          }
        }
      },
      "required": [
        "row"
      ],
      "additionalProperties": false
    }
  }
}