update_doc_paragraph_style

Apply paragraph-level style to a range.

writeGoogle Sheets, Docs & Drive

Call it

In an AI client (MCP)

tools/call
{
  "name": "update_doc_paragraph_style",
  "arguments": {
    "documentId": "<documentId>",
    "startIndex": 1,
    "endIndex": 1
  }
}

From code (Tool API)

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

Arguments

NameTypeDescription
documentIdrequiredstringthe Google Docs document ID.
startIndexrequiredintegerRange start (inclusive).
endIndexrequiredintegerRange end (exclusive).
namedStyleTypestringNORMAL_TEXT, TITLE, SUBTITLE, HEADING_1..HEADING_6.
alignmentstringSTART, CENTER, END, JUSTIFIED.
lineSpacingnumberPercentage — 100 = single, 150 = 1.5x, 200 = double.
indentStartPtnumberLeft indent in points.
indentEndPtnumberRight indent in points.
indentFirstLinePtnumberFirst-line indent (pt). Useful for indented prose.
spaceAbovePtnumberVertical space above paragraph (pt).
spaceBelowPtnumberVertical space below paragraph (pt).
keepWithNextbooleanIf True, keep with next paragraph on same page.

Result

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

  • { styled: true }

On this page

Actions

View as Markdown

Ask an assistant

Ask ChatGPTAsk Claude