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

Чаты · Просмотр · Операция

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

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

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

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

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

Recover the original committed result of a chat or message mutation after an uncertain response. Use the exact original action and arguments. Checks current company membership, parent participation, original action permissions and the same account/client permission fingerprint. Archived chats remain readable. Returns metadata only, never repeats or unlocks a mutation and never returns message text, OAuth URLs or credential contents.

Параметры запроса
original
Original chat action and its exact arguments, including the unchanged requestId and any original revision. Do not supply a new revision or request identifier after an uncertain response. обязательно по схеме
Что вернёт команда
status
Read-only receipt observation; not_recorded never authorizes repeating an uncertain mutation with another requestId. обязательно по схеме · string · варианты committed, not_recorded
result
Original immutable metadata result, including IDs; does not return message text, OAuth links, credentials or current resource content. обязательно по схеме · object / null
Поля и технические схемы
Входные поля и поля ответа chats_get_operation
Вход · JSON Schema
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "original": {
      "oneOf": [
        {
          "type": "object",
          "properties": {
            "operation": {
              "type": "string",
              "const": "chats_create",
              "description": "Original chat creation action."
            },
            "arguments": {
              "type": "object",
              "properties": {
                "name": {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 200,
                  "description": "Native chat name, up to 200 characters."
                },
                "visibility": {
                  "description": "For human internal chats, company is shared with staff and participants is private. Omit for existing AI/Flow chats.",
                  "type": "string",
                  "enum": [
                    "company",
                    "participants"
                  ]
                },
                "type": {
                  "default": "chat",
                  "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."
                },
                "users": {
                  "default": [],
                  "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": {
                  "default": "",
                  "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": {
                  "default": "",
                  "type": "string",
                  "maxLength": 4096,
                  "description": "Short native chat context, at most 4096 characters. Treated as data and never used as an authorization source."
                },
                "sessionId": {
                  "default": "",
                  "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."
                },
                "requestId": {
                  "$ref": "#/$defs/_mcp0"
                }
              },
              "required": [
                "name",
                "type",
                "users",
                "agent",
                "context",
                "sessionId",
                "requestId"
              ],
              "additionalProperties": false,
              "description": "Exact original creation arguments."
            }
          },
          "required": [
            "operation",
            "arguments"
          ],
          "additionalProperties": false
        },
        {
          "type": "object",
          "properties": {
            "operation": {
              "type": "string",
              "const": "chats_update",
              "description": "Original metadata update action."
            },
            "arguments": {
              "type": "object",
              "properties": {
                "chatId": {
                  "$ref": "#/$defs/_mcp1"
                },
                "expectedRevision": {
                  "$ref": "#/$defs/_mcp2"
                },
                "values": {
                  "type": "object",
                  "properties": {
                    "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."
                    },
                    "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."
                    }
                  },
                  "additionalProperties": false,
                  "description": "Only supplied native metadata changes. All participants may update context/sessionId; changing name/type/users/agent requires the creator. Archived is managed by separate lifecycle actions."
                },
                "requestId": {
                  "$ref": "#/$defs/_mcp0"
                }
              },
              "required": [
                "chatId",
                "expectedRevision",
                "values",
                "requestId"
              ],
              "additionalProperties": false,
              "description": "Exact original update arguments."
            }
          },
          "required": [
            "operation",
            "arguments"
          ],
          "additionalProperties": false
        },
        {
          "type": "object",
          "properties": {
            "operation": {
              "type": "string",
              "const": "chats_archive",
              "description": "Original archive action."
            },
            "arguments": {
              "type": "object",
              "properties": {
                "chatId": {
                  "$ref": "#/$defs/_mcp1"
                },
                "expectedRevision": {
                  "$ref": "#/$defs/_mcp2"
                },
                "requestId": {
                  "$ref": "#/$defs/_mcp0"
                }
              },
              "required": [
                "chatId",
                "expectedRevision",
                "requestId"
              ],
              "additionalProperties": false,
              "description": "Exact original archive arguments."
            }
          },
          "required": [
            "operation",
            "arguments"
          ],
          "additionalProperties": false
        },
        {
          "type": "object",
          "properties": {
            "operation": {
              "type": "string",
              "const": "chats_restore",
              "description": "Original restore action."
            },
            "arguments": {
              "type": "object",
              "properties": {
                "chatId": {
                  "$ref": "#/$defs/_mcp1"
                },
                "expectedRevision": {
                  "$ref": "#/$defs/_mcp2"
                },
                "requestId": {
                  "$ref": "#/$defs/_mcp0"
                }
              },
              "required": [
                "chatId",
                "expectedRevision",
                "requestId"
              ],
              "additionalProperties": false,
              "description": "Exact original restore arguments."
            }
          },
          "required": [
            "operation",
            "arguments"
          ],
          "additionalProperties": false
        },
        {
          "type": "object",
          "properties": {
            "operation": {
              "type": "string",
              "const": "chat_messages_create",
              "description": "Original message or reply creation action."
            },
            "arguments": {
              "type": "object",
              "properties": {
                "interactive": {
                  "type": "object",
                  "properties": {
                    "version": {
                      "default": 1,
                      "description": "Interactive version; use the declared type, limits and current saved card definition.",
                      "type": "number",
                      "const": 1
                    },
                    "kind": {
                      "default": "card",
                      "description": "Interactive kind; use the declared type, limits and current saved card definition.",
                      "type": "string",
                      "enum": [
                        "card",
                        "form",
                        "status",
                        "html"
                      ]
                    },
                    "title": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 180,
                      "description": "Interactive title; use the declared type, limits and current saved card definition."
                    },
                    "body": {
                      "default": "",
                      "description": "Interactive body; use the declared type, limits and current saved card definition.",
                      "type": "string",
                      "maxLength": 3000
                    },
                    "fields": {
                      "default": [],
                      "description": "Interactive fields; use the declared type, limits and current saved card definition.",
                      "maxItems": 12,
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "$ref": "#/$defs/_mcp3"
                          },
                          "label": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 120,
                            "description": "Interactive label; use the declared type, limits and current saved card definition."
                          },
                          "type": {
                            "default": "text",
                            "description": "Interactive type; use the declared type, limits and current saved card definition.",
                            "type": "string",
                            "enum": [
                              "text",
                              "textarea",
                              "number",
                              "select",
                              "checkbox",
                              "date"
                            ]
                          },
                          "required": {
                            "default": false,
                            "description": "Interactive required; use the declared type, limits and current saved card definition.",
                            "type": "boolean"
                          },
                          "options": {
                            "description": "Interactive options; use the declared type, limits and current saved card definition.",
                            "maxItems": 30,
                            "type": "array",
                            "items": {
                              "type": "object",
                              "properties": {
                                "value": {
                                  "type": "string",
                                  "maxLength": 160,
                                  "description": "Interactive value; use the declared type, limits and current saved card definition."
                                },
                                "label": {
                                  "type": "string",
                                  "maxLength": 160,
                                  "description": "Interactive label; use the declared type, limits and current saved card definition."
                                }
                              },
                              "required": [
                                "value",
                                "label"
                              ],
                              "additionalProperties": false,
                              "description": "Interactive options; use the declared type, limits and current saved card definition."
                            }
                          },
                          "maxLength": {
                            "default": 500,
                            "description": "Interactive maxLength; use the declared type, limits and current saved card definition.",
                            "type": "integer",
                            "minimum": 1,
                            "maximum": 1500
                          },
                          "minimum": {
                            "description": "Interactive minimum; use the declared type, limits and current saved card definition.",
                            "type": "number"
                          },
                          "maximum": {
                            "description": "Interactive maximum; use the declared type, limits and current saved card definition.",
                            "type": "number"
                          },
                          "value": {
                            "description": "Interactive value; use the declared type, limits and current saved card definition.",
                            "anyOf": [
                              {
                                "$ref": "#/$defs/_mcp4"
                              },
                              {
                                "type": "number",
                                "description": "Interactive value; use the declared type, limits and current saved card definition."
                              },
                              {
                                "type": "boolean",
                                "description": "Interactive value; use the declared type, limits and current saved card definition."
                              },
                              {
                                "type": "null",
                                "description": "Interactive value; use the declared type, limits and current saved card definition."
                              }
                            ]
                          }
                        },
                        "required": [
                          "id",
                          "label",
                          "type",
                          "required",
                          "maxLength"
                        ],
                        "additionalProperties": false,
                        "description": "Interactive fields; use the declared type, limits and current saved card definition."
                      }
                    },
                    "metrics": {
                      "default": [],
                      "description": "Interactive metrics; use the declared type, limits and current saved card definition.",
                      "maxItems": 12,
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "label": {
                            "type": "string",
                            "maxLength": 120,
                            "description": "Interactive label; use the declared type, limits and current saved card definition."
                          },
                          "valueKey": {
                            "$ref": "#/$defs/_mcp3"
                          },
                          "suffix": {
                            "default": "",
                            "description": "Interactive suffix; use the declared type, limits and current saved card definition.",
                            "type": "string",
                            "maxLength": 30
                          }
                        },
                        "required": [
                          "label",
                          "valueKey",
                          "suffix"
                        ],
                        "additionalProperties": false,
                        "description": "Interactive metrics; use the declared type, limits and current saved card definition."
                      }
                    },
                    "progress": {
                      "description": "Interactive progress; use the declared type, limits and current saved card definition.",
                      "type": "object",
                      "properties": {
                        "label": {
                          "default": "",
                          "description": "Interactive label; use the declared type, limits and current saved card definition.",
                          "type": "string",
                          "maxLength": 120
                        },
                        "valueKey": {
                          "$ref": "#/$defs/_mcp3"
                        },
                        "maximum": {
                          "default": 100,
                          "description": "Interactive maximum; use the declared type, limits and current saved card definition.",
                          "type": "number",
                          "exclusiveMinimum": 0,
                          "maximum": 1000000000000
                        }
                      },
                      "required": [
                        "label",
                        "valueKey",
                        "maximum"
                      ],
                      "additionalProperties": false
                    },
                    "actions": {
                      "default": [],
                      "description": "Interactive actions; use the declared type, limits and current saved card definition.",
                      "maxItems": 8,
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "$ref": "#/$defs/_mcp3"
                          },
                          "label": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 100,
                            "description": "Interactive label; use the declared type, limits and current saved card definition."
                          },
                          "kind": {
                            "default": "submit",
                            "description": "Interactive kind; use the declared type, limits and current saved card definition.",
                            "type": "string",
                            "enum": [
                              "submit",
                              "flow"
                            ]
                          },
                          "flow": {
                            "description": "Interactive flow; use the declared type, limits and current saved card definition.",
                            "type": "object",
                            "properties": {
                              "siteId": {
                                "type": "string",
                                "pattern": "^[A-Za-z0-9_~:@+.-]{1,128}$",
                                "description": "Interactive siteId; use the declared type, limits and current saved card definition."
                              },
                              "alias": {
                                "type": "string",
                                "pattern": "^[a-z][a-z0-9-]{1,63}$",
                                "description": "Interactive alias; use the declared type, limits and current saved card definition."
                              },
                              "input": {
                                "default": {},
                                "description": "Interactive input; use the declared type, limits and current saved card definition.",
                                "type": "object",
                                "propertyNames": {
                                  "$ref": "#/$defs/_mcp3"
                                },
                                "additionalProperties": {
                                  "$ref": "#/$defs/_mcp5"
                                }
                              }
                            },
                            "required": [
                              "siteId",
                              "alias",
                              "input"
                            ],
                            "additionalProperties": false
                          }
                        },
                        "required": [
                          "id",
                          "label",
                          "kind"
                        ],
                        "additionalProperties": false,
                        "description": "Interactive actions; use the declared type, limits and current saved card definition."
                      }
                    },
                    "values": {
                      "default": {},
                      "description": "Interactive values; use the declared type, limits and current saved card definition.",
                      "type": "object",
                      "propertyNames": {
                        "$ref": "#/$defs/_mcp3"
                      },
                      "additionalProperties": {
                        "$ref": "#/$defs/_mcp5"
                      }
                    },
                    "html": {
                      "description": "Interactive html; use the declared type, limits and current saved card definition.",
                      "type": "string",
                      "maxLength": 60000
                    },
                    "height": {
                      "default": 360,
                      "description": "Interactive height; use the declared type, limits and current saved card definition.",
                      "type": "integer",
                      "minimum": 160,
                      "maximum": 800
                    }
                  },
                  "required": [
                    "version",
                    "kind",
                    "title",
                    "body",
                    "fields",
                    "metrics",
                    "actions",
                    "values",
                    "height"
                  ],
                  "additionalProperties": false,
                  "description": "Interactive message; use the declared type, limits and current saved card definition."
                },
                "chatId": {
                  "$ref": "#/$defs/_mcp1"
                },
                "sessionId": {
                  "type": "string",
                  "pattern": "^[A-Za-z0-9_~:@+.-]{1,128}$",
                  "description": "Current Flow/Chat operation session ID to preserve on this message, including OAuth link messages."
                },
                "replyToMessageId": {
                  "default": "",
                  "description": "Optional existing reply target in the same chat and session. Omit for a top-level message.",
                  "anyOf": [
                    {
                      "type": "string",
                      "pattern": "^[A-Za-z0-9_~:@+.-]{1,128}$"
                    },
                    {
                      "type": "string",
                      "const": ""
                    }
                  ]
                },
                "text": {
                  "default": "",
                  "type": "string",
                  "maxLength": 8192,
                  "description": "Native message text, at most 8192 characters. Submit credentials only through the secure human input page, never in this field."
                },
                "type": {
                  "default": "text",
                  "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."
                },
                "referenceId": {
                  "default": "",
                  "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": {
                  "default": [],
                  "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."
                },
                "expectedRevision": {
                  "description": "Optional expected parent chat revision. Current participation and archived state are always checked transactionally.",
                  "type": "string",
                  "pattern": "^fsv1:-?\\d{1,12}:\\d{1,9}$"
                },
                "requestId": {
                  "$ref": "#/$defs/_mcp0"
                }
              },
              "required": [
                "chatId",
                "sessionId",
                "replyToMessageId",
                "text",
                "type",
                "referenceId",
                "attachments",
                "requestId"
              ],
              "additionalProperties": false,
              "description": "Exact original message arguments."
            }
          },
          "required": [
            "operation",
            "arguments"
          ],
          "additionalProperties": false
        }
      ],
      "description": "Original chat action and its exact arguments, including the unchanged requestId and any original revision. Do not supply a new revision or request identifier after an uncertain response."
    }
  },
  "required": [
    "original"
  ],
  "additionalProperties": false,
  "$defs": {
    "_mcp0": {
      "type": "string",
      "pattern": "^[A-Za-z0-9_-]{8,128}$",
      "description": "Stable request identifier for these exact arguments. Keep it unchanged when retrying an uncertain response."
    },
    "_mcp1": {
      "type": "string",
      "pattern": "^[A-Za-z0-9_~:@+.-]{1,128}$",
      "description": "Existing native chatai document ID in the authenticated company and participant list."
    },
    "_mcp2": {
      "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."
    },
    "_mcp3": {
      "type": "string",
      "pattern": "^[A-Za-z][A-Za-z0-9_]{0,47}$",
      "description": "Interactive id; use the declared type, limits and current saved card definition."
    },
    "_mcp4": {
      "type": "string",
      "maxLength": 1500,
      "description": "Interactive value; use the declared type, limits and current saved card definition."
    },
    "_mcp5": {
      "anyOf": [
        {
          "$ref": "#/$defs/_mcp4"
        },
        {
          "type": "number",
          "description": "Interactive value; use the declared type, limits and current saved card definition."
        },
        {
          "type": "boolean",
          "description": "Interactive value; use the declared type, limits and current saved card definition."
        },
        {
          "type": "null",
          "description": "Interactive value; use the declared type, limits and current saved card definition."
        }
      ],
      "description": "Interactive value; use the declared type, limits and current saved card definition."
    }
  }
}
Выход · JSON Schema
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "status": {
      "type": "string",
      "enum": [
        "committed",
        "not_recorded"
      ],
      "description": "Read-only receipt observation; not_recorded never authorizes repeating an uncertain mutation with another requestId."
    },
    "result": {
      "anyOf": [
        {
          "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."
            },
            "messageId": {
              "anyOf": [
                {
                  "type": "string",
                  "pattern": "^[A-Za-z0-9_~:@+.-]{1,128}$",
                  "description": "Message ID under this exact chat; never a path into another chat."
                },
                {
                  "type": "null"
                }
              ],
              "description": "Created message ID, otherwise null."
            },
            "operation": {
              "type": "string",
              "enum": [
                "chat_created",
                "chat_updated",
                "chat_archived",
                "chat_restored",
                "message_created"
              ],
              "description": "Committed native operation. No business operation, provider or agent was run."
            },
            "changed": {
              "type": "boolean",
              "description": "Whether this operation changed native fields."
            },
            "appliedFromRevision": {
              "anyOf": [
                {
                  "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."
                },
                {
                  "type": "null"
                }
              ],
              "description": "Parent revision checked before the change; null for chat creation. Read again for the current revision."
            }
          },
          "required": [
            "chatId",
            "messageId",
            "operation",
            "changed",
            "appliedFromRevision"
          ],
          "additionalProperties": false
        },
        {
          "type": "null"
        }
      ],
      "description": "Original immutable metadata result, including IDs; does not return message text, OAuth links, credentials or current resource content."
    }
  },
  "required": [
    "status",
    "result"
  ],
  "additionalProperties": false
}