MCP Control
Чаты · Чтение

Чаты · Список

chats_list
Контактные карточки и телефон

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

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

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

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

List or search native chats by an exact name prefix. Queries only the connected company and authenticated participant, with bounded indexed pages. Chat membership does not grant access to orders, customers, finance or other business resources.

Параметры запроса
archived
Select either active or archived chats. обязательно по схеме · boolean · по умолчанию false
type
Native chat category label. It is metadata only and grants no business or execution permissions. необязательно · string
namePrefix
Optional exact case-sensitive name prefix. Uses a bounded indexed query rather than scanning chat contents. необязательно · string · до символов 120
limit
Максимальное число элементов на этой странице. обязательно по схеме · integer · по умолчанию 10 · минимум 1 · максимум 20
cursor
Продолжение из предыдущего ответа при тех же фильтрах. необязательно · string · до символов 1500
Что вернёт команда
items
Записи, которые вернул этот запрос. обязательно по схеме · array · до элементов 20
nextCursor
Курсор для получения следующей страницы. обязательно по схеме · string / null
hasMore
Есть ли ещё одна страница результата. обязательно по схеме · boolean
Поля и технические схемы
Входные поля и поля ответа chats_list
Вход · JSON Schema
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "archived": {
      "default": false,
      "description": "Select either active or archived chats.",
      "type": "boolean"
    },
    "type": {
      "type": "string",
      "pattern": "^[A-Za-z][A-Za-z0-9_-]{0,63}$",
      "description": "Native chat category label. It is metadata only and grants no business or execution permissions."
    },
    "namePrefix": {
      "description": "Optional exact case-sensitive name prefix. Uses a bounded indexed query rather than scanning chat contents.",
      "type": "string",
      "minLength": 1,
      "maxLength": 120
    },
    "limit": {
      "default": 10,
      "description": "Maximum records requested, at most 20. The server may return fewer to keep the response below 48 KiB; continue with nextCursor.",
      "type": "integer",
      "minimum": 1,
      "maximum": 20
    },
    "cursor": {
      "description": "Opaque nextCursor from the same action, authenticated workspace and unchanged filters. Omit on the first page.",
      "type": "string",
      "maxLength": 1500,
      "pattern": "^[A-Za-z0-9_-]+$"
    }
  },
  "required": [
    "archived",
    "limit"
  ],
  "additionalProperties": false
}
Выход · JSON Schema
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "items": {
      "maxItems": 20,
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "messageCollection": {
            "type": "string",
            "const": "message",
            "description": "Canonical human message collection."
          },
          "visibility": {
            "type": "string",
            "enum": [
              "company",
              "participants"
            ],
            "description": "Company staff or participant-only audience."
          },
          "conversationId": {
            "type": "string",
            "pattern": "^[A-Za-z0-9_~:@+.-]{1,128}$",
            "description": "Canonical Social inbox conversation ID."
          },
          "contactId": {
            "type": "string",
            "pattern": "^[A-Za-z0-9_~:@+.-]{1,128}$",
            "description": "Registered client or human group contact ID."
          },
          "chatId": {
            "type": "string",
            "pattern": "^[A-Za-z0-9_~:@+.-]{1,128}$",
            "description": "Existing native chatai document ID in the authenticated company and participant list."
          },
          "revision": {
            "type": "string",
            "pattern": "^fsv1:-?\\d{1,12}:\\d{1,9}$",
            "description": "Exact Firestore update-time revision returned by the corresponding get action. No revision field is stored in the native document."
          },
          "company": {
            "type": "string",
            "pattern": "^[A-Za-z0-9_~:@+.-]{1,128}$",
            "description": "Server-resolved company of this chat."
          },
          "name": {
            "type": "string",
            "minLength": 1,
            "maxLength": 200,
            "description": "Native chat name, up to 200 characters."
          },
          "type": {
            "type": "string",
            "pattern": "^[A-Za-z][A-Za-z0-9_-]{0,63}$",
            "description": "Native chat category label. It is metadata only and grants no business or execution permissions."
          },
          "creator": {
            "type": "string",
            "pattern": "^[A-Za-z0-9_~:@+.-]{1,128}$",
            "description": "Immutable authenticated UID that created this chat."
          },
          "users": {
            "maxItems": 50,
            "type": "array",
            "items": {
              "type": "string",
              "pattern": "^[A-Za-z0-9_~:@+.-]{1,128}$",
              "description": "Firebase UID of a verified active company member."
            },
            "description": "Complete additional participant UID list. The creator always retains access independently of this array; company membership is checked on the server."
          },
          "agent": {
            "anyOf": [
              {
                "type": "string",
                "pattern": "^[A-Za-z0-9_~:@+.-]{1,128}$"
              },
              {
                "type": "string",
                "const": ""
              }
            ],
            "description": "Optional native agent identifier, or empty string. This label does not execute or authorize an agent."
          },
          "context": {
            "type": "string",
            "maxLength": 4096,
            "description": "Short native chat context, at most 4096 characters. Treated as data and never used as an authorization source."
          },
          "sessionId": {
            "anyOf": [
              {
                "type": "string",
                "pattern": "^[A-Za-z0-9_~:@+.-]{1,128}$"
              },
              {
                "type": "string",
                "const": ""
              }
            ],
            "description": "Current Flow/Chat operation session ID, or empty string. Supplied by the client because this MCP transport is stateless; it is context, never authentication. Changing it never rewrites or selects message sessions automatically."
          },
          "createdAt": {
            "$ref": "#/$defs/_mcp0"
          },
          "updatedAt": {
            "$ref": "#/$defs/_mcp0"
          },
          "archived": {
            "type": "boolean",
            "description": "Archived chats remain readable by current participants; only the creator can restore them."
          }
        },
        "required": [
          "chatId",
          "revision",
          "company",
          "name",
          "type",
          "creator",
          "users",
          "agent",
          "context",
          "sessionId",
          "createdAt",
          "updatedAt",
          "archived"
        ],
        "additionalProperties": false
      },
      "description": "Bounded chats for the authenticated company and current participant."
    },
    "nextCursor": {
      "anyOf": [
        {
          "type": "string",
          "maxLength": 1500,
          "pattern": "^[A-Za-z0-9_-]+$"
        },
        {
          "type": "null"
        }
      ],
      "description": "Continuation bound to this workspace and filters, or null after the last result."
    },
    "hasMore": {
      "type": "boolean",
      "description": "Whether another indexed page is available."
    }
  },
  "required": [
    "items",
    "nextCursor",
    "hasMore"
  ],
  "additionalProperties": false,
  "$defs": {
    "_mcp0": {
      "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": "Native server timestamp rendered as UTC ISO 8601."
    }
  }
}