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

Документы · Просмотр · Операция

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

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

Получить данные
  1. Вы указываетеОбъект
  2. ПомощникЧтение
  3. Вы получаетеПоля ответа
Запрос в чат
Для задачи «Документы / Просмотр / Операция» выполни чтение в текущей компании. Выведи кратко: статус, результат.
Что искать в ответе
status
Статус
result
Результат
Задать параметры
  1. Вы указываетеЗадача
  2. ПомощникСхема входа
  3. Вы получаетеУсловия чтения
Запрос в чат
Покажи, как получить «Документы / Просмотр / Операция» на учебном примере с action = documents_create_template. Объясни, какие ещё данные нужны и как будет выглядеть ответ.
Фрагмент учебных параметров
action
documents_create_template
Разобрать ответ
  1. Вы указываетеПолученный ответ
  2. ПомощникРазбор значений
  3. Вы получаетеКраткое пояснение
Запрос в чат
На основании уже полученного ответа «Документы / Просмотр / Операция» объясни статус, результат. Отметь отсутствующие значения.
Поля для проверки
status
Статус
result
Результат
Как работает действие

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

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

Recover one native document create, update or delete after an uncertain response. Uses the original action and requestId within this exact company, user and client. Rechecks the original operation permissions, current parent association and order location. Returns the immutable historical receipt even after a later layout edit or deletion. not_recorded does not prove failure or permit a new requestId; retry only unchanged original arguments. Never renders, prints, restores or changes a document.

Параметры запроса
action
Вариант действия, разрешённый схемой. обязательно по схеме · string · варианты documents_create_template, documents_update_template, documents_delete_template, documents_create_for_order, documents_update_order_document, documents_delete_order_document, documents_create_for_task, documents_update_task_document, documents_delete_task_document
requestId
Ключ этой операции. Для повтора с теми же аргументами сохраните исходное значение. обязательно по схеме · string · до символов 128
Что вернёт команда
status
Whether an atomic native document receipt was found. обязательно по схеме · string · варианты committed, not_recorded
result
Historical committed result, or null when no receipt exists. обязательно по схеме · object / null
Поля и технические схемы
Входные поля и поля ответа documents_get_operation
Вход · JSON Schema
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "action": {
      "type": "string",
      "enum": [
        "documents_create_template",
        "documents_update_template",
        "documents_delete_template",
        "documents_create_for_order",
        "documents_update_order_document",
        "documents_delete_order_document",
        "documents_create_for_task",
        "documents_update_task_document",
        "documents_delete_task_document"
      ],
      "description": "The exact original document mutation, not a database collection or path."
    },
    "requestId": {
      "type": "string",
      "minLength": 8,
      "maxLength": 128,
      "pattern": "^[A-Za-z0-9_-]+$",
      "description": "The original requestId, scoped to this company, user, client and operation."
    }
  },
  "required": [
    "action",
    "requestId"
  ],
  "additionalProperties": false
}
Выход · JSON Schema
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "status": {
      "type": "string",
      "enum": [
        "committed",
        "not_recorded"
      ],
      "description": "Whether an atomic native document receipt was found."
    },
    "result": {
      "anyOf": [
        {
          "type": "object",
          "properties": {
            "documentId": {
              "type": "string",
              "description": "Native document ID from the historical receipt."
            },
            "revision": {
              "description": "Initial layout revision when the original operation created a document.",
              "type": "string"
            },
            "orderId": {
              "description": "Original accessible parent order.",
              "type": "string"
            },
            "taskId": {
              "description": "Original accessible parent task.",
              "type": "string"
            },
            "updated": {
              "description": "The original operation updated the layout.",
              "type": "boolean",
              "const": true
            },
            "deleted": {
              "description": "The original operation deleted the document.",
              "type": "boolean",
              "const": true
            }
          },
          "required": [
            "documentId"
          ],
          "additionalProperties": false
        },
        {
          "type": "null"
        }
      ],
      "description": "Historical committed result, or null when no receipt exists."
    }
  },
  "required": [
    "status",
    "result"
  ],
  "additionalProperties": false
}