doc_batch_update

Escape hatch: apply a raw Docs API batchUpdate Requests list.

destructiveGoogle Sheets, Docs & Drive

Use it for operations no other doc tool exposes (named ranges, table-cell merges, footnotes, section styles); the list is applied atomically — one invalid request fails them all. Request shapes are documented at https://developers.google.com/docs/api/reference/rest/v1/documents/request

Call it

In an AI client (MCP)

tools/call
{
  "name": "doc_batch_update",
  "arguments": {
    "documentId": "<documentId>",
    "requests": []
  }
}

From code (Tool API)

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

Arguments

NameTypeDescription
documentIdrequiredstringthe Google Docs document ID.
requestsrequiredobject[]List of Docs API Request objects.

Result

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

  • replies — one entry per request, in order (e.g. replies[0].createHeader.headerId); an empty requests list returns replies: [] without calling Google.

On this page

Actions

View as Markdown

Ask an assistant

Ask ChatGPTAsk Claude