update_doc_text_style

Apply character-level text styles to an index range (from find_doc_text or get_doc).

writeGoogle Sheets, Docs & Drive

To style every occurrence of a word or phrase, style_doc_text_by_match finds and styles in one call. At least one style attribute must be provided.

Call it

In an AI client (MCP)

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

From code (Tool API)

curl -X POST https://api.sellersheetai.com/api/v1/tools/update_doc_text_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).
boldbooleanboolean toggles.
italicbooleanboolean toggles.
underlinebooleanboolean toggles.
strikethroughbooleanboolean toggles.
fontSizenumberPoint size (float).
fontFamilystringFont family name, e.g. "Roboto".
foregroundColorobject[]RGB list 0.0–1.0, e.g. [0.2, 0.4, 0.8].
backgroundColorobject[]RGB list 0.0–1.0.
linkUrlstringURL to convert the range into a hyperlink.

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