Flow · Тестирование
flows_test
Попробуйте три запроса
- Вы указываетеСценарий
- ПомощникЧтение
- Вы получаетеПоля ответа
Для задачи «Flow / Тестирование» выполни чтение по выбранной записи (сценарий). Выведи кратко: сценарий, версия записи.
- flowId
- Сценарий
- revision
- Версия записи
- requestId
- Ключ операции
- Вы указываетеСценарий
- ПомощникСверка выбора
- Вы получаетеТочный объект
Покажи, как получить «Flow / Тестирование» на учебном примере с flowId = DEMO-101. Объясни, какие ещё данные нужны и как будет выглядеть ответ.
- flowId
- DEMO-101
- entryItemId
- DEMO-101
- Вы указываетеПолученный ответ
- ПомощникРазбор значений
- Вы получаетеКраткое пояснение
На основании уже полученного ответа «Flow / Тестирование» объясни сценарий, версия записи. Отметь отсутствующие значения.
- flowId
- Сценарий
- revision
- Версия записи
- requestId
- Ключ операции
Как работает действие
Это чтение. Выберите запись или задайте фильтры в доступной компании. Прочитайте актуальную версию записи перед подготовкой запроса.
Описание разработчика
Test a DISABLED native Flow through the existing safe Flow Studio runtime at an exact revision. On errors use system_logs_search; read sabsus_get_master_prompt topic=automations for diagnosis. Checks schemas, native data types, IDs, permissions, integrations and credentials; evaluates pure nodes and native branches; blocks all external actions and validates their resolved inputs. Correct returned errors, read a new revision and retest with a new requestId. Different payloads and testQuery values cover different branches. Missing credentials/OAuth retain errors and valid=false, but pure simulation still diagnoses the graph without reading secrets or contacting providers. Other configuration/access failures prevent simulation. Never activates production. Results can be recovered through flows_get_test_result.
Параметры запроса
- flowId
- Native company Flow ID. обязательно по схеме · string
- expectedRevision
- Версия, прочитанная перед изменением. обязательно по схеме · string
- entryItemId
- Exact enabled trigger/webhook node. Required for multiple enabled entries. необязательно · string
- testPayload
- Non-secret representative native trigger data, up to 32 KiB. Values must match actual entity schemas. обязательно по схеме · object
- testQuery
- Non-secret synthetic webhook query parameters. Values are strings or string arrays as in an HTTP query; separate from testPayload (body). Up to 32 KiB and 100 keys. Never sent to a provider. необязательно · object
- mockOutputs
- Optional non-secret synthetic responses keyed by enabled external action/crypto node ID, at most 100 entries and 32 KiB total. HTTP values are response bodies and pass through native output mappings; other values are the native handler output. Used only in this safe test, never saved into Flow or sent to a provider. Use different fixtures to exercise downstream branches. необязательно · object
- requestId
- Ключ этой операции. Для повтора с теми же аргументами сохраните исходное значение. обязательно по схеме · string
Что вернёт команда
- flowId
- Native Flow ID. обязательно по схеме · string
- revision
- Exact Flow revision tested; never a production execution revision. обязательно по схеме · string
- requestId
- Original test request. обязательно по схеме · string
- valid
- Full configuration and safe test passed for this payload. обязательно по схеме · boolean
- environment
- Existing Flow Studio dry-run only. обязательно по схеме · string
- productionActivated
- Testing never activates or executes the production Flow. обязательно по схеме · boolean
- executionOrder
- Visited native node IDs in execution order. обязательно по схеме · array · до элементов 100
- nodes
- Safe per-node results. Provider payloads and configuration values are omitted. обязательно по схеме · array · до элементов 100
- errors
- Errors to correct before retesting. обязательно по схеме · array · до элементов 100
- warnings
- Coverage/configuration observations. обязательно по схеме · array · до элементов 100
- requirements
- Secure setup requirements; no URLs, keys or tokens. обязательно по схеме · array · до элементов 200
- sideEffects
- No business writes, external messages, network actions, crypto or production activation. обязательно по схеме · string
- testedAt
- Server completion timestamp. обязательно по схеме · string
Поля и технические схемы

Вход · 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 company Flow ID."
},
"expectedRevision": {
"type": "string",
"pattern": "^fsv1:-?\\d{1,12}:\\d{1,9}$",
"description": "Exact Flow revision tested; never a production execution revision."
},
"entryItemId": {
"description": "Exact enabled trigger/webhook node. Required for multiple enabled entries.",
"type": "string",
"pattern": "^[A-Za-z0-9_~:@+.-]{1,160}$"
},
"testPayload": {
"type": "object",
"propertyNames": {
"type": "string"
},
"additionalProperties": {
"$ref": "#/$defs/__schema0"
},
"description": "Non-secret representative native trigger data, up to 32 KiB. Values must match actual entity schemas."
},
"testQuery": {
"description": "Non-secret synthetic webhook query parameters. Values are strings or string arrays as in an HTTP query; separate from testPayload (body). Up to 32 KiB and 100 keys. Never sent to a provider.",
"type": "object",
"propertyNames": {
"type": "string",
"pattern": "^[A-Za-z][A-Za-z0-9_.-]{0,99}$"
},
"additionalProperties": {
"anyOf": [
{
"type": "string",
"maxLength": 2000
},
{
"maxItems": 20,
"type": "array",
"items": {
"type": "string",
"maxLength": 2000
}
}
]
}
},
"mockOutputs": {
"description": "Optional non-secret synthetic responses keyed by enabled external action/crypto node ID, at most 100 entries and 32 KiB total. HTTP values are response bodies and pass through native output mappings; other values are the native handler output. Used only in this safe test, never saved into Flow or sent to a provider. Use different fixtures to exercise downstream branches.",
"type": "object",
"propertyNames": {
"type": "string",
"pattern": "^[A-Za-z0-9_~:@+.-]{1,160}$"
},
"additionalProperties": {
"$ref": "#/$defs/__schema1"
}
},
"requestId": {
"type": "string",
"pattern": "^[A-Za-z0-9_-]{8,128}$",
"description": "Stable ID for this revision and payload. Retry unchanged to recover the original test result."
}
},
"required": [
"flowId",
"expectedRevision",
"testPayload",
"requestId"
],
"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"
}
}
]
},
"__schema1": {
"anyOf": [
{
"type": "string"
},
{
"type": "number"
},
{
"type": "boolean"
},
{
"type": "null"
},
{
"type": "array",
"items": {
"$ref": "#/$defs/__schema1"
}
},
{
"type": "object",
"propertyNames": {
"type": "string"
},
"additionalProperties": {
"$ref": "#/$defs/__schema1"
}
}
]
}
}
}Выход · 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 ID."
},
"revision": {
"type": "string",
"pattern": "^fsv1:-?\\d{1,12}:\\d{1,9}$",
"description": "Exact Flow revision tested; never a production execution revision."
},
"requestId": {
"type": "string",
"description": "Original test request."
},
"valid": {
"type": "boolean",
"description": "Full configuration and safe test passed for this payload."
},
"environment": {
"type": "string",
"const": "test",
"description": "Existing Flow Studio dry-run only."
},
"productionActivated": {
"type": "boolean",
"const": false,
"description": "Testing never activates or executes the production Flow."
},
"executionOrder": {
"maxItems": 100,
"type": "array",
"items": {
"type": "string",
"pattern": "^[A-Za-z0-9_~:@+.-]{1,160}$"
},
"description": "Visited native node IDs in execution order."
},
"nodes": {
"maxItems": 100,
"type": "array",
"items": {
"type": "object",
"properties": {
"nodeId": {
"type": "string",
"pattern": "^[A-Za-z0-9_~:@+.-]{1,160}$",
"description": "Native node visited by Flow Studio."
},
"status": {
"type": "string",
"enum": [
"simulated",
"mocked"
],
"description": "Pure handler evaluated, or external action prevented."
},
"success": {
"type": "boolean",
"description": "Runtime result and resolved parameter validation both passed."
},
"branch": {
"type": "string",
"enum": [
"",
"left",
"right"
],
"description": "Chosen native condition branch, otherwise empty."
},
"fixtureApplied": {
"default": false,
"description": "A supplied mock response was used for this node; never evidence of a real provider response.",
"type": "boolean"
}
},
"required": [
"nodeId",
"status",
"success",
"branch",
"fixtureApplied"
],
"additionalProperties": false
},
"description": "Safe per-node results. Provider payloads and configuration values are omitted."
},
"errors": {
"maxItems": 100,
"type": "array",
"items": {
"$ref": "#/$defs/_mcp1"
},
"description": "Errors to correct before retesting."
},
"warnings": {
"maxItems": 100,
"type": "array",
"items": {
"$ref": "#/$defs/_mcp1"
},
"description": "Coverage/configuration observations."
},
"requirements": {
"maxItems": 200,
"type": "array",
"items": {
"type": "object",
"properties": {
"nodeId": {
"type": "string",
"pattern": "^[A-Za-z0-9_~:@+.-]{1,160}$",
"description": "Native node requiring configuration."
},
"kind": {
"type": "string",
"enum": [
"credential",
"oauth"
],
"description": "Secure UI interaction required."
},
"provider": {
"type": "string",
"maxLength": 100,
"description": "Existing provider identifier, or empty if an existing integration must be selected."
},
"integrationId": {
"type": "string",
"maxLength": 160,
"description": "Existing company integration ID, or empty until resolved."
},
"field": {
"type": "string",
"maxLength": 300,
"description": "Native destination field; no secret value."
},
"status": {
"type": "string",
"enum": [
"required",
"ready",
"invalid"
],
"description": "Metadata and access check result; ready does not certify provider credentials with an external call."
},
"referenceId": {
"type": "string",
"maxLength": 160,
"description": "Opaque integration or credential ID only."
}
},
"required": [
"nodeId",
"kind",
"provider",
"integrationId",
"field",
"status",
"referenceId"
],
"additionalProperties": false
},
"description": "Secure setup requirements; no URLs, keys or tokens."
},
"sideEffects": {
"type": "string",
"const": "blocked",
"description": "No business writes, external messages, network actions, crypto or production activation."
},
"testedAt": {
"type": "string",
"format": "date-time",
"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$",
"description": "Server completion timestamp."
}
},
"required": [
"flowId",
"revision",
"requestId",
"valid",
"environment",
"productionActivated",
"executionOrder",
"nodes",
"errors",
"warnings",
"requirements",
"sideEffects",
"testedAt"
],
"additionalProperties": false,
"$defs": {
"_mcp1": {
"type": "object",
"properties": {
"code": {
"type": "string",
"maxLength": 100,
"description": "Stable diagnostic code."
},
"nodeId": {
"$ref": "#/$defs/_mcp0"
},
"field": {
"type": "string",
"maxLength": 300,
"description": "Native field path, without its value."
}
},
"required": [
"code",
"nodeId",
"field"
],
"additionalProperties": false
},
"_mcp0": {
"anyOf": [
{
"type": "string",
"pattern": "^[A-Za-z0-9_~:@+.-]{1,160}$"
},
{
"type": "null"
}
],
"description": "Affected native node, or null for the whole graph."
}
}
}