set_doc_table_cell_text

Replace the text content of a specific table cell.

destructiveGoogle Sheets, Docs & Drive

tableIndex is 0-based across the body's top-level tables (in document order). row and column are 0-based cell coordinates. The cell's first paragraph is replaced; further paragraphs in the cell stay.

Call it

In an AI client (MCP)

tools/call
{
  "name": "set_doc_table_cell_text",
  "arguments": {
    "documentId": "<documentId>",
    "tableIndex": 1,
    "row": 1,
    "column": 1,
    "text": "<text>"
  }
}

From code (Tool API)

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

Arguments

NameTypeDescription
documentIdrequiredstringthe Google Docs document ID.
tableIndexrequiredintegerWhich table to target (0 = first table).
rowrequiredintegerCell row (0-based).
columnrequiredintegerCell column (0-based).
textrequiredstringPlain text to place in the cell.

Result

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

  • { tableIndex, row, column, chars }

On this page

Actions

View as Markdown

Ask an assistant

Ask ChatGPTAsk Claude