MCP Site
site_flow

Подключить автоматизацию к сайту

Читает контракт, шаблоны и привязки автоматизаций, включая виртуальную примерку.

С изменениями

Примеры промптов

Запрос в чат
Какая автоматизация примерки подключена к этому сайту? Покажи текущую привязку и ограничения для посетителя.
Что проверить в ответе

Читает контракт, шаблоны и привязки автоматизаций, включая виртуальную примерку.

Запрос в чат
Для задачи «Подключить автоматизацию к сайту» сравни режимы contract и try_on_template инструмента site_flow. Какой подойдёт в моём случае и какие данные нужно подготовить?
Что проверить в ответе

Сопоставить два режима и их аргументы.

Запрос в чат
При выполнении «Подключить автоматизацию к сайту» связь прервалась после отправки. Для site_flow проверь исходный ключ операции и текущее состояние объекта перед решением о повторе.
Что проверить в ответе

Сопоставить результат с исходной операцией.

Как проходит вызов
Вход: siteId, operation, flowId. Результат: result.
Как уточнить расплывчатый запрос
Настрой связь.

Назовите форму или диалог и уточните, требуется черновик, проверка или отправка.

Какая автоматизация примерки подключена к этому сайту? Покажи текущую привязку и ограничения для посетителя.

Параметры запроса
siteId
Идентификатор сайта из списка доступных сайтов. строка · обязательно по схеме
operation
Выбранный режим инструмента. contract, try_on_template, try_on_get, try_on_set, bindings, binding_get, bind, set_enabled, flow_context, flow_create, flow_get, flow_graph_read, flow_update, flow_validate, flow_test, flow_publish, flow_activation_set, flow_runs, flow_run_get, flow_get_operation, flow_version_restore, flow_versions, flow_version_read, flow_archive · обязательно по схеме
flowId
строка · необязательно
publishedRevision
целое число · необязательно · до 9007199254740991
expectedBindingRevision
целое число · необязательно · от 0 · до 9007199254740991
enabled
да / нет · необязательно
idempotencyKey
Ключ одной операции. При повторе с теми же данными сохраните ключ. строка · необязательно
limit
Сколько элементов запрашивать за один раз. целое число · необязательно · от 1 · до 12000
after
строка · необязательно
alias
строка · необязательно
spec
объект · необязательно
expectedRevision
Актуальная ревизия объекта перед изменением. целое число · необязательно · от 0 · до 9007199254740991
requestId
Идентификатор исходного запроса. Сохраните для проверки результата. строка · необязательно
graph
объект · необязательно
offset
целое число · необязательно · от 0 · до 2000000
payload
объект · необязательно
entryId
строка · необязательно
expectedState
строка · необязательно
activate
да / нет · необязательно
expectedPublishedRevision
целое число · необязательно · до 9007199254740991
active
да / нет · необязательно
test
да / нет · необязательно
runId
строка · необязательно
originalRequestId
Идентификатор ранее начатой операции. строка · необязательно
originalOperation
site_tryon_set, create, update, copy, archive, restore, test, version_restore, publish, activation_set, run, approval_decide, connection_start, connection_check, credential_revoke, chat_edit · необязательно
version
целое число · необязательно · до 9007199254740991
Что вернёт инструмент
result
Содержимое результата зависит от выполненной операции. объект · обязательно по схеме
Пример аргументов JSON

Учебные значения. Для вызова подставьте идентификаторы и ревизию из своего подключения.

{
  "operation": "contract",
  "siteId": "site_demo"
}
Полная схема MCP

Вход

{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "siteId": {
      "type": "string",
      "pattern": "^[A-Za-z0-9_~:@+.-]{1,128}$"
    },
    "operation": {
      "type": "string",
      "enum": [
        "contract",
        "try_on_template",
        "try_on_get",
        "try_on_set",
        "bindings",
        "binding_get",
        "bind",
        "set_enabled",
        "flow_context",
        "flow_create",
        "flow_get",
        "flow_graph_read",
        "flow_update",
        "flow_validate",
        "flow_test",
        "flow_publish",
        "flow_activation_set",
        "flow_runs",
        "flow_run_get",
        "flow_get_operation",
        "flow_version_restore",
        "flow_versions",
        "flow_version_read",
        "flow_archive"
      ],
      "description": "Use contract to read usage and status to get the current revision before configure."
    },
    "flowId": {
      "type": "string",
      "pattern": "^[A-Za-z0-9_~:@+.-]{1,128}$"
    },
    "publishedRevision": {
      "type": "integer",
      "exclusiveMinimum": 0,
      "maximum": 9007199254740991
    },
    "expectedBindingRevision": {
      "type": "integer",
      "minimum": 0,
      "maximum": 9007199254740991
    },
    "enabled": {
      "type": "boolean"
    },
    "idempotencyKey": {
      "type": "string",
      "pattern": "^[A-Za-z0-9_-]{8,128}$"
    },
    "limit": {
      "type": "integer",
      "minimum": 1,
      "maximum": 12000
    },
    "after": {
      "type": "string",
      "pattern": "^[A-Za-z0-9_~:@+.-]{1,128}$"
    },
    "alias": {
      "type": "string",
      "pattern": "^[a-z][a-z0-9-]{1,63}$"
    },
    "spec": {
      "type": "object",
      "properties": {
        "alias": {
          "type": "string",
          "pattern": "^[a-z][a-z0-9-]{1,63}$"
        },
        "flowId": {
          "type": "string",
          "pattern": "^[A-Za-z0-9_~:@+.-]{1,128}$"
        },
        "publishedRevision": {
          "type": "integer",
          "exclusiveMinimum": 0,
          "maximum": 9007199254740991
        },
        "entryId": {
          "type": "string",
          "pattern": "^[A-Za-z0-9_~:@+.-]{1,128}$"
        },
        "responseNodeId": {
          "type": "string",
          "pattern": "^[A-Za-z0-9_~:@+.-]{1,128}$"
        },
        "input": {
          "type": "object",
          "propertyNames": {
            "type": "string",
            "pattern": "^[A-Za-z][A-Za-z0-9_]{0,63}$"
          },
          "additionalProperties": {
            "type": "object",
            "properties": {
              "type": {
                "type": "string",
                "enum": [
                  "string",
                  "number",
                  "boolean"
                ]
              },
              "required": {
                "default": true,
                "type": "boolean"
              },
              "enum": {
                "minItems": 1,
                "maxItems": 100,
                "type": "array",
                "items": {
                  "anyOf": [
                    {
                      "type": "string",
                      "maxLength": 240
                    },
                    {
                      "type": "number"
                    },
                    {
                      "type": "boolean"
                    }
                  ]
                }
              },
              "maxLength": {
                "default": 240,
                "type": "integer",
                "minimum": 1,
                "maximum": 1000
              },
              "minimum": {
                "type": "number"
              },
              "maximum": {
                "type": "number"
              }
            },
            "required": [
              "type",
              "required",
              "maxLength"
            ],
            "additionalProperties": false
          }
        },
        "output": {
          "type": "object",
          "propertyNames": {
            "type": "string",
            "pattern": "^[A-Za-z][A-Za-z0-9_]{0,63}$"
          },
          "additionalProperties": {
            "type": "object",
            "properties": {
              "type": {
                "type": "string",
                "enum": [
                  "string",
                  "number",
                  "boolean"
                ]
              },
              "required": {
                "default": true,
                "type": "boolean"
              },
              "enum": {
                "minItems": 1,
                "maxItems": 100,
                "type": "array",
                "items": {
                  "anyOf": [
                    {
                      "type": "string",
                      "maxLength": 240
                    },
                    {
                      "type": "number"
                    },
                    {
                      "type": "boolean"
                    }
                  ]
                }
              },
              "maxLength": {
                "default": 240,
                "type": "integer",
                "minimum": 1,
                "maximum": 1000
              },
              "minimum": {
                "type": "number"
              },
              "maximum": {
                "type": "number"
              },
              "path": {
                "type": "string",
                "minLength": 1,
                "maxLength": 240
              }
            },
            "required": [
              "type",
              "required",
              "maxLength",
              "path"
            ],
            "additionalProperties": false
          }
        },
        "cacheTtlSeconds": {
          "default": 60,
          "type": "integer",
          "minimum": 0,
          "maximum": 3600
        },
        "requestsPerMinute": {
          "default": 30,
          "type": "integer",
          "minimum": 1,
          "maximum": 120
        }
      },
      "required": [
        "alias",
        "flowId",
        "publishedRevision",
        "entryId",
        "responseNodeId",
        "input",
        "output",
        "cacheTtlSeconds",
        "requestsPerMinute"
      ],
      "additionalProperties": false
    },
    "expectedRevision": {
      "type": "integer",
      "minimum": 0,
      "maximum": 9007199254740991,
      "description": "Use 0 for a new public binding; otherwise use the current revision returned for this exact operation."
    },
    "requestId": {
      "type": "string",
      "pattern": "^[A-Za-z0-9_-]{8,128}$"
    },
    "graph": {
      "type": "object",
      "properties": {
        "name": {
          "type": "string",
          "minLength": 1,
          "maxLength": 160
        },
        "description": {
          "type": "string",
          "maxLength": 5000
        },
        "items": {
          "minItems": 1,
          "maxItems": 2000,
          "type": "array",
          "items": {
            "type": "object",
            "propertyNames": {
              "type": "string"
            },
            "additionalProperties": {
              "$ref": "#/$defs/__schema0"
            }
          }
        },
        "positions": {
          "type": "object",
          "propertyNames": {
            "type": "string"
          },
          "additionalProperties": {
            "type": "object",
            "properties": {
              "x": {
                "type": "number"
              },
              "y": {
                "type": "number"
              }
            },
            "required": [
              "x",
              "y"
            ],
            "additionalProperties": false
          }
        },
        "viewport": {
          "type": "object",
          "properties": {
            "x": {
              "type": "number"
            },
            "y": {
              "type": "number"
            },
            "zoom": {
              "type": "number",
              "minimum": 0.05,
              "maximum": 4
            }
          },
          "required": [
            "x",
            "y",
            "zoom"
          ],
          "additionalProperties": false
        }
      },
      "required": [
        "name",
        "items"
      ],
      "additionalProperties": false
    },
    "offset": {
      "type": "integer",
      "minimum": 0,
      "maximum": 2000000
    },
    "payload": {
      "type": "object",
      "propertyNames": {
        "type": "string"
      },
      "additionalProperties": {
        "$ref": "#/$defs/__schema1"
      }
    },
    "entryId": {
      "type": "string",
      "pattern": "^[A-Za-z0-9_~:@+.-]{1,128}$"
    },
    "expectedState": {
      "type": "string",
      "pattern": "^fsv1:-?\\d+:\\d+$"
    },
    "activate": {
      "type": "boolean"
    },
    "expectedPublishedRevision": {
      "type": "integer",
      "exclusiveMinimum": 0,
      "maximum": 9007199254740991
    },
    "active": {
      "type": "boolean"
    },
    "test": {
      "type": "boolean"
    },
    "runId": {
      "type": "string",
      "pattern": "^[A-Za-z0-9_~:@+.-]{1,128}$"
    },
    "originalRequestId": {
      "type": "string",
      "pattern": "^[A-Za-z0-9_-]{8,128}$"
    },
    "originalOperation": {
      "type": "string",
      "enum": [
        "site_tryon_set",
        "create",
        "update",
        "copy",
        "archive",
        "restore",
        "test",
        "version_restore",
        "publish",
        "activation_set",
        "run",
        "approval_decide",
        "connection_start",
        "connection_check",
        "credential_revoke",
        "chat_edit"
      ]
    },
    "version": {
      "type": "integer",
      "exclusiveMinimum": 0,
      "maximum": 9007199254740991
    }
  },
  "required": [
    "siteId",
    "operation"
  ],
  "additionalProperties": false
}

Ответ

{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "result": {
      "type": "object",
      "propertyNames": {
        "type": "string"
      },
      "additionalProperties": {
        "$ref": "#/$defs/__schema0"
      }
    }
  },
  "required": [
    "result"
  ],
  "additionalProperties": false,
  "$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"
          }
        }
      ]
    }
  }
}
Открыть JSON карточки

Из этого раздела