read_sheet_format

Read cell formatting from a range.

readGoogle Sheets, Docs & Drive

Call it

In an AI client (MCP)

tools/call
{
  "name": "read_sheet_format",
  "arguments": {
    "spreadsheet_id": "<spreadsheet_id>",
    "range_": "<range_>"
  }
}

From code (Tool API)

curl -X POST https://api.sellersheetai.com/api/v1/tools/read_sheet_format \
  -H "Authorization: Bearer $SELLERSHEET_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"spreadsheet_id":"<spreadsheet_id>","range_":"<range_>"}'
Early access — the Tool API is open on request, contact us.

Arguments

NameTypeDescription
spreadsheet_idrequiredstringthe spreadsheet ID (from its URL or get_sheet_metadata).
range_requiredstringA1 notation range (e.g. 'Sheet1!A1:D100').

Result

Every tool answers {notification, data, human_action}; data carries:

  • data.formats[] — {sheet, row, col, value, format} per cell. row and col are 0-based (A1 = 0, 0). format is the userEnteredFormat (what was set on the cell), not the effective look after conditional formatting; get_sheet_cell returns both.

Example

read_sheet_format("1ABC...", "Sheet1!A1:D100")

On this page

Actions

View as Markdown

Ask an assistant

Ask ChatGPTAsk Claude