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

Таблицы · Ячейки · Просмотр

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

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

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

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

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

Read a rectangular cell range with raw values/formulas and native formatting. Coordinates are zero-based. Empty cells are null. No fabricated formula results.

Параметры запроса
id
Идентификатор выбранной записи. обязательно по схеме · string
sheetId
Native sheetId value; use the value and type returned by the corresponding service. обязательно по схеме · string
row
Native row value; use the value and type returned by the corresponding service. обязательно по схеме · integer · минимум 0 · максимум 9007199254740991
col
Native col value; use the value and type returned by the corresponding service. обязательно по схеме · integer · минимум 0 · максимум 9007199254740991
rows
Native rows value; use the value and type returned by the corresponding service. обязательно по схеме · integer · минимум 1 · максимум 100
cols
Native cols value; use the value and type returned by the corresponding service. обязательно по схеме · integer · минимум 1 · максимум 100
offset
Смещение из предыдущей страницы или начальное значение из схемы. обязательно по схеме · integer · по умолчанию 0 · минимум 0 · максимум 9007199254740991
expectedHash
Контрольное значение из предыдущего чтения. необязательно · string
Что вернёт команда
result
Bounded native Sheets result. Native revisions and merge rules are authoritative. обязательно по схеме · object
Поля и технические схемы
Входные поля и поля ответа sheets_cells_read
Вход · JSON Schema
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "id": {
      "type": "string",
      "pattern": "^[A-Za-z0-9_~:@+.-]{1,160}$",
      "description": "Native id value; use the value and type returned by the corresponding service."
    },
    "sheetId": {
      "type": "string",
      "pattern": "^[A-Za-z0-9_~:@+.-]{1,160}$",
      "description": "Native sheetId value; use the value and type returned by the corresponding service."
    },
    "row": {
      "type": "integer",
      "minimum": 0,
      "maximum": 9007199254740991,
      "description": "Native row value; use the value and type returned by the corresponding service."
    },
    "col": {
      "type": "integer",
      "minimum": 0,
      "maximum": 9007199254740991,
      "description": "Native col value; use the value and type returned by the corresponding service."
    },
    "rows": {
      "type": "integer",
      "minimum": 1,
      "maximum": 100,
      "description": "Native rows value; use the value and type returned by the corresponding service."
    },
    "cols": {
      "type": "integer",
      "minimum": 1,
      "maximum": 100,
      "description": "Native cols value; use the value and type returned by the corresponding service."
    },
    "offset": {
      "default": 0,
      "description": "Native offset value; use the value and type returned by the corresponding service.",
      "type": "integer",
      "minimum": 0,
      "maximum": 9007199254740991
    },
    "expectedHash": {
      "description": "Native expectedHash value; use the value and type returned by the corresponding service.",
      "type": "string",
      "pattern": "^[a-f0-9]{64}$"
    }
  },
  "required": [
    "id",
    "sheetId",
    "row",
    "col",
    "rows",
    "cols",
    "offset"
  ],
  "additionalProperties": false
}
Выход · JSON Schema
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "result": {
      "type": "object",
      "propertyNames": {
        "type": "string"
      },
      "additionalProperties": {
        "$ref": "#/$defs/__schema0"
      },
      "description": "Bounded native Sheets result. Native revisions and merge rules are authoritative."
    }
  },
  "required": [
    "result"
  ],
  "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"
          }
        }
      ]
    }
  }
}