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

Документы · Список · Шаблоны

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

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

Получить данные
  1. Вы указываетеAfterid
  2. ПомощникЧтение
  3. Вы получаетеПоля ответа
Запрос в чат
Для задачи «Документы / Список / Шаблоны» выполни чтение по выбранной записи (afterId). Выведи кратко: список позиций, nextId.
Что искать в ответе
items
Список позиций
nextId
Поле ответа
Задать параметры
  1. Вы указываетеAfterid
  2. ПомощникСверка выбора
  3. Вы получаетеТочный объект
Запрос в чат
Покажи, как получить «Документы / Список / Шаблоны» на учебном примере с limit = 3. Объясни, какие ещё данные нужны и как будет выглядеть ответ.
Фрагмент учебных параметров
limit
3
afterId
DEMO-101
Разобрать ответ
  1. Вы указываетеПолученный ответ
  2. ПомощникРазбор значений
  3. Вы получаетеКраткое пояснение
Запрос в чат
На основании уже полученного ответа «Документы / Список / Шаблоны» объясни список позиций, nextId. Отметь отсутствующие значения.
Поля для проверки
items
Список позиций
nextId
Поле ответа
Как работает действие

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

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

Browse existing document and template metadata in the connected company. Requires all-location access because templates can be company-wide. Use documentId and revision in document actions; a linked order/task document is not editable as a reusable template. No content is changed.

Параметры запроса
limit
Максимальное число элементов на этой странице. обязательно по схеме · integer · по умолчанию 20 · минимум 1 · максимум 50
afterId
Last documentId returned by this same company listing; omit for the first page. необязательно · string · до символов 128
Что вернёт команда
items
Записи, которые вернул этот запрос. обязательно по схеме · array · до элементов 50
nextId
Last returned document identifier when another page exists; otherwise null. обязательно по схеме · string / null
Поля и технические схемы
Входные поля и поля ответа documents_list_templates
Вход · JSON Schema
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "limit": {
      "default": 20,
      "description": "Maximum records returned, from 1 to 50.",
      "type": "integer",
      "minimum": 1,
      "maximum": 50
    },
    "afterId": {
      "description": "Last documentId returned by this same company listing; omit for the first page.",
      "type": "string",
      "minLength": 1,
      "maxLength": 128,
      "pattern": "^[A-Za-z0-9_~:@+.-]+$"
    }
  },
  "required": [
    "limit"
  ],
  "additionalProperties": false
}
Выход · JSON Schema
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "items": {
      "maxItems": 50,
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "documentId": {
            "type": "string",
            "description": "Canonical Companies/{company}/Documents document identifier."
          },
          "names": {
            "maxItems": 3,
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "language": {
                  "type": "string",
                  "maxLength": 20,
                  "description": "Stored language code preview."
                },
                "name": {
                  "type": "string",
                  "maxLength": 300,
                  "description": "Stored localized template name preview."
                }
              },
              "required": [
                "language",
                "name"
              ],
              "additionalProperties": false
            },
            "description": "Preview of up to three existing document names; the complete name array is available in native layout reads."
          },
          "namesTruncated": {
            "type": "boolean",
            "description": "True when names or their preview strings were shortened; read the native layout chunks for complete names."
          },
          "totalNameCount": {
            "type": "integer",
            "minimum": 0,
            "maximum": 9007199254740991,
            "description": "Total number of stored localized names before preview limits."
          },
          "itemCount": {
            "type": "integer",
            "minimum": -9007199254740991,
            "maximum": 9007199254740991,
            "description": "Number of native layout items."
          },
          "template": {
            "type": "boolean",
            "description": "True when this record is not linked to an order or task."
          },
          "revision": {
            "type": "string",
            "pattern": "^[a-f0-9]{64}$",
            "description": "Content revision token. Pass unchanged when updating or deleting to detect concurrent edits."
          }
        },
        "required": [
          "documentId",
          "names",
          "namesTruncated",
          "totalNameCount",
          "itemCount",
          "template",
          "revision"
        ],
        "additionalProperties": false
      },
      "description": "Existing company document metadata."
    },
    "nextId": {
      "description": "Last returned document identifier when another page exists; otherwise null.",
      "type": [
        "string",
        "null"
      ]
    }
  },
  "required": [
    "items",
    "nextId"
  ],
  "additionalProperties": false
}