create_doc_header

Create a document header and optionally fill it with initial text.

writeGoogle Sheets, Docs & Drive

If the document already has a default header, returns its headerId with created=false — text is still prepended to it, so pass text only once.

Call it

In an AI client (MCP)

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

From code (Tool API)

curl -X POST https://api.sellersheetai.com/api/v1/tools/create_doc_header \
  -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.
textstringOptional initial header text.Default: ""

Result

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

  • { headerId: str, created: bool }

On this page

Actions

View as Markdown

Ask an assistant

Ask ChatGPTAsk Claude