MCP Control
Реклама · Изменение

Реклама · Офлайн · Печать · Экспорт

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

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

Подготовить
  1. Вы указываетеОбъект
  2. ПомощникПодготовка
  3. Вы получаетеПредпросмотр
Запрос в чат
Подготовь «Реклама / Офлайн / Печать / Экспорт». Для изменения нужны print. Покажи объект и ожидаемый эффект до выполнения.
Что входит в подготовку
print
Параметр
Применить
  1. Вы указываетеСогласованные значения
  2. ПомощникОдин вызов
  3. Вы получаетеОтвет операции
Запрос в чат
Выполни согласованное действие «Реклама / Офлайн / Печать / Экспорт» с проверенными значениями. Покажи результат этой попытки.
Параметры примера
requestId
Ключ операции
Проверить итог
  1. Вы указываетеИсходный ответ
  2. ПомощникСверка результата
  3. Вы получаетеПодтверждение
Запрос в чат
Проверь результат «Реклама / Офлайн / Печать / Экспорт» по исходному ответу. Покажи результат. Объясни, чем подтвердить эффект для выбранного объекта.
Как проследить одну попытку
  1. ЗапросСохранить исходный ключ
  2. ОтветПроверить статус
  3. ПроверкаСверить эффект операции
Как работает действие

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

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

Run native offline print export 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
requestId
Ключ этой операции. Для повтора с теми же аргументами сохраните исходное значение. обязательно по схеме · 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_export
Вход · JSON Schema
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "print": {
      "type": "object",
      "properties": {
        "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."
        },
        "sourceId": {
          "type": "string",
          "pattern": "^[a-f0-9]{64}$",
          "description": "Native ADS sourceId."
        },
        "backSourceId": {
          "type": "string",
          "pattern": "^[a-f0-9]{64}$",
          "description": "Native ADS backSourceId."
        },
        "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
          }
        },
        "duplex": {
          "default": "none",
          "description": "Native ADS duplex.",
          "type": "string",
          "enum": [
            "none",
            "long",
            "short"
          ]
        },
        "campaignId": {
          "type": "string",
          "minLength": 1,
          "maxLength": 128,
          "pattern": "^[A-Za-z0-9_.-]+$",
          "description": "Native ADS campaignId."
        },
        "placementId": {
          "type": "string",
          "minLength": 1,
          "maxLength": 128,
          "pattern": "^[A-Za-z0-9_.-]+$",
          "description": "Native ADS placementId."
        },
        "batchId": {
          "type": "string",
          "minLength": 1,
          "maxLength": 128,
          "pattern": "^[A-Za-z0-9_.-]+$",
          "description": "Native ADS batchId."
        },
        "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": {
          "type": "number",
          "minimum": 20,
          "maximum": 500,
          "description": "Native ADS sizeMm."
        },
        "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."
        }
      },
      "required": [
        "sourceId",
        "artwork",
        "duplex",
        "campaignId",
        "placementId",
        "batchId"
      ],
      "additionalProperties": false,
      "description": "Native ADS print."
    },
    "requestId": {
      "type": "string",
      "pattern": "^[A-Za-z0-9_-]{8,128}$",
      "description": "Original stable request identifier. Recover with ads_workspace_operation_get after uncertainty; never repeat a spending instruction with a new key."
    }
  },
  "required": [
    "print",
    "requestId"
  ],
  "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"
          }
        }
      ]
    }
  }
}