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)
{
"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
| Name | Type | Description |
|---|---|---|
documentIdrequired | string | the Google Docs document ID. |
text | string | Optional initial header text.Default: "" |
Result
Every tool answers {notification, data, human_action}; data carries:
- { headerId: str, created: bool }