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

Flow · Возобновление · Документы

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

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

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

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

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

Recover the exact PDF operation after an interrupted native Flow document test or invocation. On errors use system_logs_search; read sabsus_get_master_prompt topic=automations for diagnosis. Uses its recorded parameters and the existing export receipt; rechecks current document/company/parent access. Does not traverse or activate Flow, resend messages, or produce a second artifact.

Параметры запроса
flowId
Existing native Flow ID. обязательно по схеме · string
requestId
Ключ этой операции. Для повтора с теми же аргументами сохраните исходное значение. обязательно по схеме · string
Что вернёт команда
flowId
Native Flow ID. обязательно по схеме · string
nodeId
Native PDF action node. обязательно по схеме · string
revision
Native Flow revision captured before rendering. обязательно по схеме · string
environment
Explicit document test or an already active native Flow invocation. обязательно по схеме · string · варианты test, production
productionActivated
This operation never changes Flow activation. обязательно по схеме · boolean
document
Canonical protected PDF artifact. Use documents_revoke_export to clean up. обязательно по схеме · object
Поля и технические схемы
Входные поля и поля ответа flows_resume_document
Вход · 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": "Existing native Flow ID."
    },
    "requestId": {
      "type": "string",
      "pattern": "^[A-Za-z0-9_-]{8,128}$",
      "description": "Original document test or native run request ID."
    }
  },
  "required": [
    "flowId",
    "requestId"
  ],
  "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 ID."
    },
    "nodeId": {
      "type": "string",
      "pattern": "^[A-Za-z0-9_~:@+.-]{1,160}$",
      "description": "Native PDF action node."
    },
    "revision": {
      "type": "string",
      "description": "Native Flow revision captured before rendering."
    },
    "environment": {
      "type": "string",
      "enum": [
        "test",
        "production"
      ],
      "description": "Explicit document test or an already active native Flow invocation."
    },
    "productionActivated": {
      "type": "boolean",
      "const": false,
      "description": "This operation never changes Flow activation."
    },
    "document": {
      "type": "object",
      "properties": {
        "exportId": {
          "type": "string",
          "pattern": "^[a-f0-9]{64}$",
          "description": "Server-issued PDF export identifier; never a Storage path."
        },
        "documentId": {
          "type": "string",
          "description": "Canonical native document identifier."
        },
        "orderId": {
          "description": "Canonical order used to fill this document, when present.",
          "type": "string"
        },
        "documentRevision": {
          "type": "string",
          "description": "Exact native document layout revision captured by this export."
        },
        "status": {
          "type": "string",
          "enum": [
            "ready",
            "rendering",
            "failed",
            "revoked",
            "expired"
          ],
          "description": "Current export lifecycle status. Only ready exports can be downloaded."
        },
        "mimeType": {
          "type": "string",
          "const": "application/pdf",
          "description": "The exported file is a real PDF."
        },
        "byteLength": {
          "type": "integer",
          "minimum": 0,
          "maximum": 9007199254740991,
          "description": "Size of the finished PDF, or zero before rendering completes."
        },
        "sha256": {
          "description": "PDF content hash for verification, or null before completion.",
          "type": [
            "string",
            "null"
          ]
        },
        "filename": {
          "type": "string",
          "description": "Safe download filename."
        },
        "createdAt": {
          "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": "UTC creation time."
        },
        "expiresAt": {
          "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": "UTC expiry; downloads are denied after this time even before cleanup runs."
        },
        "downloadUrl": {
          "anyOf": [
            {
              "type": "string",
              "format": "uri"
            },
            {
              "type": "null"
            }
          ],
          "description": "Authenticated GET endpoint for a ready PDF. Send the current workspace bearer token; no signing token or PDF bytes are returned in tool output."
        }
      },
      "required": [
        "exportId",
        "documentId",
        "documentRevision",
        "status",
        "mimeType",
        "byteLength",
        "sha256",
        "filename",
        "createdAt",
        "expiresAt",
        "downloadUrl"
      ],
      "additionalProperties": false,
      "description": "Canonical protected PDF artifact. Use documents_revoke_export to clean up."
    }
  },
  "required": [
    "flowId",
    "nodeId",
    "revision",
    "environment",
    "productionActivated",
    "document"
  ],
  "additionalProperties": false
}