# update_doc_text_style (https://sellersheetai.com/docs/mcp-api/tools/update_doc_text_style)

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

Access: **WRITE** · toolset google_workspace · family null

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

MCP tool call:

```json
{
  "name": "update_doc_text_style",
  "arguments": {
    "documentId": "<documentId>",
    "startIndex": 1,
    "endIndex": 1
  }
}
```

Tool API (early access — contact us):

```bash
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}'
```

## Arguments

| Name | Type | Required | Description |
|---|---|---|---|
| `documentId` | string | yes | the Google Docs document ID. |
| `startIndex` | integer | yes | Range start (inclusive). |
| `endIndex` | integer | yes | 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

- { styled: true }