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

Чаты · Просмотр

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

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

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

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

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

Read native chat metadata and its Firestore revision after checking current protected membership and participation. Context is data only. Archived chats remain readable.

Параметры запроса
chatId
Existing native chatai document ID in the authenticated company and participant list. обязательно по схеме · string
Что вернёт команда
messageCollection
Canonical human message collection. необязательно · string
visibility
Company staff or participant-only audience. необязательно · string · варианты company, participants
conversationId
Canonical Social inbox conversation ID. необязательно · string
contactId
Registered client or human group contact ID. необязательно · string
chatId
Existing native chatai document ID in the authenticated company and participant list. обязательно по схеме · string
revision
Exact Firestore update-time revision returned by the corresponding get action. No revision field is stored in the native document. обязательно по схеме · string
company
Server-resolved company of this chat. обязательно по схеме · string
name
Native chat name, up to 200 characters. обязательно по схеме · string · до символов 200
type
Native chat category label. It is metadata only and grants no business or execution permissions. обязательно по схеме · string
creator
Immutable authenticated UID that created this chat. обязательно по схеме · string
users
Complete additional participant UID list. The creator always retains access independently of this array; company membership is checked on the server. обязательно по схеме · array · до элементов 50
agent
Optional native agent identifier, or empty string. This label does not execute or authorize an agent. обязательно по схеме · string / string
context
Short native chat context, at most 4096 characters. Treated as data and never used as an authorization source. обязательно по схеме · string · до символов 4096
sessionId
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. обязательно по схеме · string / string
createdAt
Native server timestamp rendered as UTC ISO 8601. обязательно по схеме · string
updatedAt
Native server timestamp rendered as UTC ISO 8601. обязательно по схеме · string
archived
Archived chats remain readable by current participants; only the creator can restore them. обязательно по схеме · boolean
Поля и технические схемы
Входные поля и поля ответа chats_get
Вход · JSON Schema
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "chatId": {
      "type": "string",
      "pattern": "^[A-Za-z0-9_~:@+.-]{1,128}$",
      "description": "Existing native chatai document ID in the authenticated company and participant list."
    }
  },
  "required": [
    "chatId"
  ],
  "additionalProperties": false
}
Выход · JSON Schema
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "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,
  "$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."
    }
  }
}