get_doc

Get the full Docs API document resource (body, headers, styles, revisionId).

readGoogle Sheets, Docs & Drive

Use this when you need to map characters to indices — read body.content[*].startIndex/endIndex to find where a paragraph or text run begins. For plain text only, use get_doc_text instead.

Call it

In an AI client (MCP)

tools/call
{
  "name": "get_doc",
  "arguments": {
    "documentId": "<documentId>"
  }
}

From code (Tool API)

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

Arguments

NameTypeDescription
documentIdrequiredstringthe Google Docs document ID.

Result

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

  • The Docs API document resource (structural).

On this page

Actions

View as Markdown

Ask an assistant

Ask ChatGPTAsk Claude