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)
{
"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
| Name | Type | Description |
|---|---|---|
documentIdrequired | string | the Google Docs document ID. |
startIndexrequired | integer | Range start (inclusive). |
endIndexrequired | integer | Range end (exclusive). |
bold | boolean | boolean toggles. |
italic | boolean | boolean toggles. |
underline | boolean | boolean toggles. |
strikethrough | boolean | boolean toggles. |
fontSize | number | Point size (float). |
fontFamily | string | Font family name, e.g. "Roboto". |
foregroundColor | object[] | RGB list 0.0–1.0, e.g. [0.2, 0.4, 0.8]. |
backgroundColor | object[] | RGB list 0.0–1.0. |
linkUrl | string | URL to convert the range into a hyperlink. |
Result
Every tool answers {notification, data, human_action}; data carries:
- { styled: true }