MCP Control
Документы · Изменение

Документы · Экспорт · PDF

documents_export_pdf
Папки документов

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

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

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

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

Render an existing native document as an actual PDF with its original page dimensions, row layout, tables, images, QR/barcodes and signatures. Data comes from the authorized document/order context. Returns metadata and an authenticated expiring download endpoint; never embeds PDF bytes in tool output. Preserve requestId on retries.

Параметры запроса
documentId
Existing native company Documents identifier. обязательно по схеме · string · до символов 128
orderId
Идентификатор выбранного заказа. необязательно · string · до символов 128
language
Язык результата или локализуемого значения согласно схеме. обязательно по схеме · string · по умолчанию "en" · до символов 20
requestId
Ключ этой операции. Для повтора с теми же аргументами сохраните исходное значение. обязательно по схеме · string · до символов 128
Что вернёт команда
exportId
Server-issued PDF export identifier; never a Storage path. обязательно по схеме · string
documentId
Canonical native document identifier. обязательно по схеме · string
orderId
Canonical order used to fill this document, when present. необязательно · string
documentRevision
Exact native document layout revision captured by this export. обязательно по схеме · string
status
Current export lifecycle status. Only ready exports can be downloaded. обязательно по схеме · string · варианты ready, rendering, failed, revoked, expired
mimeType
The exported file is a real PDF. обязательно по схеме · string
byteLength
Size of the finished PDF, or zero before rendering completes. обязательно по схеме · integer · минимум 0 · максимум 9007199254740991
sha256
PDF content hash for verification, or null before completion. обязательно по схеме · string / null
filename
Safe download filename. обязательно по схеме · string
createdAt
UTC creation time. обязательно по схеме · string
expiresAt
UTC expiry; downloads are denied after this time even before cleanup runs. обязательно по схеме · string
downloadUrl
Authenticated GET endpoint for a ready PDF. Send the current workspace bearer token; no signing token or PDF bytes are returned in tool output. обязательно по схеме · string / null
Поля и технические схемы
Входные поля и поля ответа documents_export_pdf
Вход · JSON Schema
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "documentId": {
      "type": "string",
      "minLength": 1,
      "maxLength": 128,
      "pattern": "^[A-Za-z0-9_~:@+.-]+$",
      "description": "Existing native company Documents identifier."
    },
    "orderId": {
      "description": "Accessible order to fill a reusable template; must match an existing order association.",
      "type": "string",
      "minLength": 1,
      "maxLength": 128,
      "pattern": "^[A-Za-z0-9_~:@+.-]+$"
    },
    "language": {
      "default": "en",
      "description": "Language used by the native PDF renderer.",
      "type": "string",
      "minLength": 2,
      "maxLength": 20
    },
    "requestId": {
      "type": "string",
      "minLength": 8,
      "maxLength": 128,
      "pattern": "^[A-Za-z0-9_-]+$",
      "description": "Unique retry identifier for this export. Reuse the exact arguments on a retry."
    }
  },
  "required": [
    "documentId",
    "language",
    "requestId"
  ],
  "additionalProperties": false
}
Выход · JSON Schema
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "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
}