update_doc_document_style
Update document-level properties: margins, page size, background.
writeGoogle Sheets, Docs & Drive
Call it
In an AI client (MCP)
{
"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
| Name | Type | Description |
|---|---|---|
documentIdrequired | string | the Google Docs document ID. |
marginTopPt | number | Page margins. |
marginBottomPt | number | Page margins. |
marginLeftPt | number | Page margins. |
marginRightPt | number | Page margins. |
pageWidthPt | number | Page dimensions. |
pageHeightPt | number | Page dimensions. |
backgroundColor | object[] | RGB list 0.0–1.0 for the page background. |
useEvenPageHeaderFooter | boolean | Different header/footer on even pages. |
useFirstPageHeaderFooter | boolean | Different 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".