Чаты · Чтение
Чаты · Сообщения · Список
chat_messages_list
Попробуйте три запроса
Получить данные
- Вы указываетеЧат
- ПомощникЧтение
- Вы получаетеПоля ответа
Запрос в чат
Для задачи «Чаты / Сообщения / Список» выполни чтение по выбранной записи (чат). Выведи кратко: чат, список позиций.
- chatId
- Чат
- items
- Список позиций
- nextCursor
- Следующая страница
Следующая страница
- Вы указываетеПредыдущий ответ
- ПомощникПродолжение
- Вы получаетеСледующая страница
Запрос в чат
Продолжи «Чаты / Сообщения / Список» с позиции прошлого ответа. Сохрани фильтры и размер страницы 3. Покажи новые строки отдельно.
Страница 1До 3 строк
Страница 2Продолжение
Разобрать ответ
- Вы указываетеПолученный ответ
- ПомощникРазбор значений
- Вы получаетеКраткое пояснение
Запрос в чат
На основании уже полученного ответа «Чаты / Сообщения / Список» объясни чат, список позиций. Отметь отсутствующие значения.
- chatId
- Чат
- items
- Список позиций
- nextCursor
- Следующая страница
Как работает действие
Это чтение. Выберите запись или задайте фильтры в доступной компании. При постраничном чтении используйте продолжение ответа с теми же фильтрами.
Описание разработчика
Read a bounded page of native messages in one authorized chat. Optional sessionId and referenceId use exact indexed filters. Stable creation-time/ID cursors never cross chats, companies or filters. References are hints and do not authorize the referenced entity.
Параметры запроса
- chatId
- Existing native chatai document ID in the authenticated company and participant list. обязательно по схеме · string
- sessionId
- Optional exact session ID filter within this chat. необязательно · string
- referenceId
- Optional exact native reference hint filter. It does not grant access to the referenced entity. необязательно · string
- limit
- Максимальное число элементов на этой странице. обязательно по схеме · integer · по умолчанию 10 · минимум 1 · максимум 20
- cursor
- Продолжение из предыдущего ответа при тех же фильтрах. необязательно · string · до символов 1500
Что вернёт команда
- chatId
- Existing native chatai document ID in the authenticated company and participant list. обязательно по схеме · string
- items
- Записи, которые вернул этот запрос. обязательно по схеме · array · до элементов 20
- nextCursor
- Курсор для получения следующей страницы. обязательно по схеме · string / null
- hasMore
- Есть ли ещё одна страница результата. обязательно по схеме · boolean
Поля и технические схемы

Вход · 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."
},
"sessionId": {
"description": "Optional exact session ID filter within this chat.",
"type": "string",
"pattern": "^[A-Za-z0-9_~:@+.-]{1,128}$"
},
"referenceId": {
"description": "Optional exact native reference hint filter. It does not grant access to the referenced entity.",
"type": "string",
"pattern": "^[A-Za-z0-9_~:@+.-]{1,128}$"
},
"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": [
"chatId",
"limit"
],
"additionalProperties": false
}Выход · 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."
},
"items": {
"maxItems": 20,
"type": "array",
"items": {
"type": "object",
"properties": {
"interactive": {
"type": "object",
"propertyNames": {
"type": "string"
},
"additionalProperties": {
"$ref": "#/$defs/__schema0"
},
"description": "Validated saved card definition and current revision."
},
"interactiveState": {
"type": "object",
"propertyNames": {
"type": "string"
},
"additionalProperties": {
"$ref": "#/$defs/__schema1"
},
"description": "Current live values and recorded participant responses."
},
"internalChatId": {
"type": "string",
"pattern": "^[A-Za-z0-9_~:@+.-]{1,128}$",
"description": "Canonical human parent chat ID."
},
"messageId": {
"type": "string",
"pattern": "^[A-Za-z0-9_~:@+.-]{1,128}$",
"description": "Message ID under this exact chat; never a path into another chat."
},
"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."
},
"sessionId": {
"type": "string",
"pattern": "^[A-Za-z0-9_~:@+.-]{1,128}$",
"description": "Flow/Chat operation session ID preserved on this message; never an authorization credential."
},
"replyToMessageId": {
"anyOf": [
{
"type": "string",
"pattern": "^[A-Za-z0-9_~:@+.-]{1,128}$"
},
{
"type": "string",
"const": ""
}
],
"description": "Existing message in the same chat and session, or empty string for a top-level message."
},
"sender": {
"type": "string",
"pattern": "^[A-Za-z0-9_~:@+.-]{1,128}$",
"description": "Authenticated user UID or the server-owned native agent sender. The client cannot choose a sender."
},
"text": {
"type": "string",
"maxLength": 50000,
"description": "Stored message text with sensitive values redacted."
},
"type": {
"type": "string",
"enum": [
"text",
"image",
"file",
"document",
"order",
"customer",
"task",
"product",
"oauth",
"credential"
],
"description": "Native message type. credential is only an empty-reference secure-input placeholder; oauth requires a server-verified authorization reference and URL."
},
"createdAt": {
"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."
},
"referenceId": {
"anyOf": [
{
"type": "string",
"pattern": "^[A-Za-z0-9_~:@+.-]{1,128}$"
},
{
"type": "string",
"const": ""
}
],
"description": "Optional native reference ID hint. It never authorizes access to the referenced business resource. credential messages must initially use an empty reference."
},
"attachments": {
"maxItems": 10,
"type": "array",
"items": {
"anyOf": [
{
"type": "string",
"format": "uuid",
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
},
{
"type": "string",
"pattern": "^file:[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-5][0-9a-fA-F]{3}-[89aAbB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}$"
},
{
"type": "string",
"pattern": "^Companies\\/[A-Za-z0-9_~:@+.-]{1,128}\\/Documents\\/[A-Za-z0-9_~:@+.-]{1,128}$"
}
],
"description": "Existing managed image UUID from media_get, file:<UUID> reference returned by the managed file service, or canonical Companies/{company}/Documents/{documentId} reference. Server checks company and underlying resource access. No URL, Storage path, query, inline bytes or base64."
},
"description": "Up to ten existing internal media references. Each retains its own company and resource permission checks."
}
},
"required": [
"messageId",
"revision",
"sessionId",
"replyToMessageId",
"sender",
"text",
"type",
"createdAt",
"referenceId",
"attachments"
],
"additionalProperties": false
},
"description": "Bounded messages from this parent chat in stable creation order."
},
"nextCursor": {
"anyOf": [
{
"type": "string",
"maxLength": 1500,
"pattern": "^[A-Za-z0-9_-]+$"
},
{
"type": "null"
}
],
"description": "Continuation for these exact chat/session/reference filters, or null."
},
"hasMore": {
"type": "boolean",
"description": "Whether another indexed page is available."
}
},
"required": [
"chatId",
"items",
"nextCursor",
"hasMore"
],
"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"
}
}
]
},
"__schema1": {
"anyOf": [
{
"type": "string"
},
{
"type": "number"
},
{
"type": "boolean"
},
{
"type": "null"
},
{
"type": "array",
"items": {
"$ref": "#/$defs/__schema1"
}
},
{
"type": "object",
"propertyNames": {
"type": "string"
},
"additionalProperties": {
"$ref": "#/$defs/__schema1"
}
}
]
}
}
}