insert_doc_table

Insert an empty table.

writeGoogle Sheets, Docs & Drive

Fill cells with set_doc_table_cell_text (tableIndex counts tables in document order), or create and fill a table in one call with write_doc_structured's table block.

Call it

In an AI client (MCP)

tools/call
{
  "name": "insert_doc_table",
  "arguments": {
    "documentId": "<documentId>",
    "rows": 1,
    "columns": 1
  }
}

From code (Tool API)

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

Arguments

NameTypeDescription
documentIdrequiredstringthe Google Docs document ID.
rowsrequiredintegerNumber of rows (>=1).
columnsrequiredintegerNumber of columns (>=1).
indexintegerInsertion index. Omit to append.

Result

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

  • { inserted: true }

On this page

Actions

View as Markdown

Ask an assistant

Ask ChatGPTAsk Claude