update_doc_document_style

Update document-level properties: margins, page size, background.

writeGoogle Sheets, Docs & Drive

Call it

In an AI client (MCP)

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

From code (Tool API)

curl -X POST https://api.sellersheetai.com/api/v1/tools/update_doc_document_style \
  -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.
marginTopPtnumberPage margins.
marginBottomPtnumberPage margins.
marginLeftPtnumberPage margins.
marginRightPtnumberPage margins.
pageWidthPtnumberPage dimensions.
pageHeightPtnumberPage dimensions.
backgroundColorobject[]RGB list 0.0–1.0 for the page background.
useEvenPageHeaderFooterbooleanDifferent header/footer on even pages.
useFirstPageHeaderFooterbooleanDifferent header/footer on first page.

Result

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

  • { styled: true }

Gotchas

  • Common page sizes in points: US Letter 612 x 792 (default) A4 595 x 842 Legal 612 x 1008 Tabloid 792 x 1224 Common margins (points): 72 = 1", 54 = 0.75", 36 = 0.5".

On this page

Actions

View as Markdown

Ask an assistant

Ask ChatGPTAsk Claude