Style text
update_text_styleStyle text in Google Slides shapes and table cells. Apply bold, italic, underline, strikethrough, font family, size, color, or hyperlink to the entire text or a selected character range.
Instructions
Styles the text of a shape or table cell (batchUpdate updateTextStyle): bold, italic, underline, strikethrough, font_family (e.g. "Roboto"), font_size_pt, foreground_color (#RRGGBB) and link_url. Only the provided fields change (the field mask is computed automatically); at least one is required. By default the whole text is styled; pass start_index + end_index (0-based character offsets, end exclusive) to style a range — get the offsets from get_page's textElements. For a table cell add row_index + column_index.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| bold | No | Bold on/off. | |
| italic | No | Italic on/off. | |
| link_url | No | Turns the styled range into a hyperlink. | |
| end_index | No | Range end, exclusive (requires start_index). | |
| object_id | Yes | The shape or table object id whose text to style. | |
| row_index | No | Table cell row (0-based; requires column_index). | |
| underline | No | Underline on/off. | |
| font_family | No | Font family, e.g. "Roboto" or "Playfair Display". | |
| start_index | No | Range start, 0-based character offset (requires end_index). | |
| column_index | No | Table cell column (0-based; requires row_index). | |
| font_size_pt | No | Font size in points. | |
| strikethrough | No | Strikethrough on/off. | |
| presentation_id | Yes | The presentation id — the long id from the URL (docs.google.com/presentation/d/<presentationId>/edit) or from create_presentation output. | |
| foreground_color | No | Text color as #RRGGBB. |