MCP Control
Реклама · Чтение

Реклама · Офлайн · Печать · Предварительная проверка

ads_offline_print_preflight
Фотокамера и образцы цвета

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

Получить данные
  1. Вы указываетеReadsnapshotid
  2. ПомощникЧтение
  3. Вы получаетеПоля ответа
Запрос в чат
Для задачи «Реклама / Офлайн / Печать / Предварительная проверка» выполни чтение по выбранной записи (readSnapshotId). Выведи кратко: результат.
Что искать в ответе
result
Результат
Задать параметры
  1. Вы указываетеReadsnapshotid
  2. ПомощникСверка выбора
  3. Вы получаетеТочный объект
Запрос в чат
Покажи, как получить «Реклама / Офлайн / Печать / Предварительная проверка» на учебном примере с chunkOffset = 0. Объясни, какие ещё данные нужны и как будет выглядеть ответ.
Фрагмент учебных параметров
chunkOffset
0
Разобрать ответ
  1. Вы указываетеПолученный ответ
  2. ПомощникРазбор значений
  3. Вы получаетеКраткое пояснение
Запрос в чат
На основании уже полученного ответа «Реклама / Офлайн / Печать / Предварительная проверка» объясни результат. Отметь отсутствующие значения.
Поля для проверки
result
Результат
Как работает действие

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

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

Run native offline print preflight with real PDF normalization, layout and QR ownership checks. Export returns the existing protected file URL; no printer or purchase is invoked. After a lost response use ads_workspace_operation_get with this operation name and the original requestId. Never infer success from a queued job.

Параметры запроса
print
Native ADS print. обязательно по схеме · object
chunkOffset
Character offset in the immutable JSON result, separate from native list offset. обязательно по схеме · integer · по умолчанию 0 · минимум 0 · максимум 9007199254740991
chunkHash
SHA-256 returned by the first chunk; required for subsequent chunks. необязательно · string
readSnapshotId
Immutable native snapshot returned for large reads. Supply it on every following chunk, within 15 minutes; avoids repeating live provider checks. необязательно · string
Что вернёт команда
result
Native operation state and a hash-bound JSON chunk. Follow nextOffset using chunkOffset/chunkHash. Completed means the native handler returned; inspect nested job/provider status before claiming synchronization or delivery. Recover mutations with ads_workspace_operation_get. обязательно по схеме · object
Поля и технические схемы
Входные поля и поля ответа ads_offline_print_preflight
Вход · JSON Schema
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "print": {
      "type": "object",
      "properties": {
        "sourceId": {
          "type": "string",
          "pattern": "^[a-f0-9]{64}$",
          "description": "Native ADS sourceId."
        },
        "backSourceId": {
          "type": "string",
          "pattern": "^[a-f0-9]{64}$",
          "description": "Native ADS backSourceId."
        },
        "duplex": {
          "type": "string",
          "enum": [
            "none",
            "long",
            "short"
          ],
          "description": "Native ADS duplex."
        },
        "elements": {
          "minItems": 1,
          "maxItems": 20,
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string",
                "minLength": 1,
                "maxLength": 80,
                "description": "Native ADS id."
              },
              "type": {
                "type": "string",
                "enum": [
                  "qr",
                  "link",
                  "code"
                ],
                "description": "Native ADS type."
              },
              "page": {
                "type": "integer",
                "minimum": 1,
                "maximum": 20,
                "description": "Native ADS page."
              },
              "xMm": {
                "type": "number",
                "minimum": 0,
                "maximum": 5000,
                "description": "Native ADS xMm."
              },
              "yMm": {
                "type": "number",
                "minimum": 0,
                "maximum": 5000,
                "description": "Native ADS yMm."
              },
              "sizeMm": {
                "default": 30,
                "description": "Native ADS sizeMm.",
                "type": "number",
                "minimum": 20,
                "maximum": 500
              },
              "widthMm": {
                "default": 85,
                "description": "Native ADS widthMm.",
                "type": "number",
                "minimum": 20,
                "maximum": 500
              },
              "fontSizeMm": {
                "default": 3,
                "description": "Native ADS fontSizeMm.",
                "type": "number",
                "minimum": 2,
                "maximum": 12
              },
              "foreground": {
                "default": "#000000",
                "description": "Native ADS foreground.",
                "type": "string",
                "pattern": "^#[0-9a-f]{6}$"
              },
              "background": {
                "default": "#ffffff",
                "description": "Native ADS background.",
                "anyOf": [
                  {
                    "type": "string",
                    "pattern": "^#[0-9a-f]{6}$"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "shape": {
                "default": "square",
                "description": "Native ADS shape.",
                "type": "string",
                "enum": [
                  "square",
                  "rounded",
                  "dots"
                ]
              },
              "showCode": {
                "default": false,
                "description": "Native ADS showCode.",
                "type": "boolean"
              }
            },
            "required": [
              "id",
              "type",
              "page",
              "xMm",
              "yMm",
              "sizeMm",
              "widthMm",
              "fontSizeMm",
              "foreground",
              "background",
              "shape",
              "showCode"
            ],
            "additionalProperties": false
          },
          "description": "Native ADS elements."
        },
        "artwork": {
          "default": [],
          "description": "Native ADS artwork.",
          "maxItems": 20,
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "page": {
                "type": "integer",
                "minimum": 1,
                "maximum": 20,
                "description": "Native ADS page."
              },
              "widthPercent": {
                "type": "number",
                "minimum": 25,
                "maximum": 300,
                "description": "Native ADS widthPercent."
              },
              "heightPercent": {
                "type": "number",
                "minimum": 25,
                "maximum": 300,
                "description": "Native ADS heightPercent."
              }
            },
            "required": [
              "page",
              "widthPercent",
              "heightPercent"
            ],
            "additionalProperties": false
          }
        },
        "prepress": {
          "anyOf": [
            {
              "type": "object",
              "properties": {
                "mode": {
                  "type": "string",
                  "enum": [
                    "sheet",
                    "single"
                  ],
                  "description": "Native ADS mode."
                },
                "sheet": {
                  "type": "string",
                  "enum": [
                    "a4",
                    "a3",
                    "sra3",
                    "a2",
                    "letter",
                    "legal",
                    "tabloid",
                    "custom"
                  ],
                  "description": "Native ADS sheet."
                },
                "orientation": {
                  "type": "string",
                  "enum": [
                    "portrait",
                    "landscape"
                  ],
                  "description": "Native ADS orientation."
                },
                "sheetWidthMm": {
                  "type": "number",
                  "minimum": 20,
                  "maximum": 2000,
                  "description": "Native ADS sheetWidthMm."
                },
                "sheetHeightMm": {
                  "type": "number",
                  "minimum": 20,
                  "maximum": 2000,
                  "description": "Native ADS sheetHeightMm."
                },
                "trimWidthMm": {
                  "type": "number",
                  "minimum": 20,
                  "maximum": 2000,
                  "description": "Native ADS trimWidthMm."
                },
                "trimHeightMm": {
                  "type": "number",
                  "minimum": 20,
                  "maximum": 2000,
                  "description": "Native ADS trimHeightMm."
                },
                "bleedMm": {
                  "type": "number",
                  "minimum": 0,
                  "maximum": 20,
                  "description": "Native ADS bleedMm."
                },
                "safeMm": {
                  "type": "number",
                  "minimum": 0,
                  "maximum": 30,
                  "description": "Native ADS safeMm."
                },
                "marginMm": {
                  "type": "number",
                  "minimum": 0,
                  "maximum": 100,
                  "description": "Native ADS marginMm."
                },
                "gapMm": {
                  "type": "number",
                  "minimum": 0,
                  "maximum": 100,
                  "description": "Native ADS gapMm."
                },
                "perSheet": {
                  "type": "integer",
                  "minimum": 0,
                  "maximum": 64,
                  "description": "Native ADS perSheet."
                },
                "cropMarks": {
                  "type": "boolean",
                  "description": "Native ADS cropMarks."
                },
                "bleedMode": {
                  "type": "string",
                  "enum": [
                    "extend",
                    "provided"
                  ],
                  "description": "Native ADS bleedMode."
                }
              },
              "required": [
                "mode",
                "sheet",
                "orientation",
                "sheetWidthMm",
                "sheetHeightMm",
                "trimWidthMm",
                "trimHeightMm",
                "bleedMm",
                "safeMm",
                "marginMm",
                "gapMm",
                "perSheet",
                "cropMarks",
                "bleedMode"
              ],
              "additionalProperties": false
            },
            {
              "type": "null"
            }
          ],
          "description": "Native ADS prepress."
        },
        "quantity": {
          "type": "integer",
          "minimum": 1,
          "maximum": 500,
          "description": "Native ADS quantity."
        }
      },
      "required": [
        "sourceId",
        "duplex",
        "elements",
        "artwork",
        "quantity"
      ],
      "additionalProperties": false,
      "description": "Native ADS print."
    },
    "chunkOffset": {
      "default": 0,
      "description": "Character offset in the immutable JSON result, separate from native list offset.",
      "type": "integer",
      "minimum": 0,
      "maximum": 9007199254740991
    },
    "chunkHash": {
      "description": "SHA-256 returned by the first chunk; required for subsequent chunks.",
      "type": "string",
      "pattern": "^[a-f0-9]{64}$"
    },
    "readSnapshotId": {
      "description": "Immutable native snapshot returned for large reads. Supply it on every following chunk, within 15 minutes; avoids repeating live provider checks.",
      "type": "string",
      "pattern": "^[a-f0-9]{64}$"
    }
  },
  "required": [
    "print",
    "chunkOffset"
  ],
  "additionalProperties": false
}
Выход · JSON Schema
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "result": {
      "type": "object",
      "propertyNames": {
        "type": "string"
      },
      "additionalProperties": {
        "$ref": "#/$defs/__schema0"
      },
      "description": "Native operation state and a hash-bound JSON chunk. Follow nextOffset using chunkOffset/chunkHash. Completed means the native handler returned; inspect nested job/provider status before claiming synchronization or delivery. Recover mutations with ads_workspace_operation_get."
    }
  },
  "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"
          }
        }
      ]
    }
  }
}