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

Таблицы · Ячейки · Расчёт

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

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

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

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

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

Calculate a saved cell range using the verified formula engine shipped by the Sheets interface, including cross-sheet formulas, named ranges, dynamic arrays and native spreadsheet errors. Reads one workbook revision and returns actual values without changing cells or running workbook automations, scripts, connections or external requests. Pass expectedRevision to require a specific current snapshot. Volatile formulas recalculate on each call. Smaller ranges may be needed for large text 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
expectedRevision
Версия, прочитанная перед изменением. необязательно · integer · максимум 9007199254740991
Что вернёт команда
id
Native id value; use the value and type returned by the corresponding service. обязательно по схеме · string
sheetId
Native sheetId value; use the value and type returned by the corresponding service. обязательно по схеме · string
revision
Native revision value; use the value and type returned by the corresponding service. обязательно по схеме · integer · максимум 9007199254740991
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
values
Native values value; use the value and type returned by the corresponding service. обязательно по схеме · array
engineVersion
Native engineVersion value; use the value and type returned by the corresponding service. обязательно по схеме · string
calculatedAt
Native calculatedAt value; use the value and type returned by the corresponding service. обязательно по схеме · string
Поля и технические схемы
Входные поля и поля ответа sheets_cells_calculate
Вход · JSON Schema
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "id": {
      "type": "string",
      "pattern": "^[A-Za-z0-9_~:@+.-]{1,128}$",
      "description": "Native id value; use the value and type returned by the corresponding service."
    },
    "sheetId": {
      "type": "string",
      "pattern": "^[A-Za-z0-9_~:@+.-]{1,128}$",
      "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."
    },
    "expectedRevision": {
      "description": "Native expectedRevision value; use the value and type returned by the corresponding service.",
      "type": "integer",
      "exclusiveMinimum": 0,
      "maximum": 9007199254740991
    }
  },
  "required": [
    "id",
    "sheetId",
    "row",
    "col",
    "rows",
    "cols"
  ],
  "additionalProperties": false
}
Выход · JSON Schema
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "id": {
      "type": "string",
      "pattern": "^[A-Za-z0-9_~:@+.-]{1,128}$",
      "description": "Native id value; use the value and type returned by the corresponding service."
    },
    "sheetId": {
      "type": "string",
      "pattern": "^[A-Za-z0-9_~:@+.-]{1,128}$",
      "description": "Native sheetId value; use the value and type returned by the corresponding service."
    },
    "revision": {
      "type": "integer",
      "exclusiveMinimum": 0,
      "maximum": 9007199254740991,
      "description": "Native revision 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."
    },
    "values": {
      "type": "array",
      "items": {
        "type": "array",
        "items": {
          "$ref": "#/$defs/__schema0"
        }
      },
      "description": "Native values value; use the value and type returned by the corresponding service."
    },
    "engineVersion": {
      "type": "string",
      "description": "Native engineVersion value; use the value and type returned by the corresponding service."
    },
    "calculatedAt": {
      "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 calculatedAt value; use the value and type returned by the corresponding service."
    }
  },
  "required": [
    "id",
    "sheetId",
    "revision",
    "row",
    "col",
    "values",
    "engineVersion",
    "calculatedAt"
  ],
  "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"
          }
        }
      ]
    }
  }
}