Format text
format_textStyles a specific character range inside a Google Slides shape or text box by applying bold, italic, color, font size, alignment, and links using zero-based UTF-16 indices.
Instructions
Style a character range inside a shape or text box. Indices are zero-based UTF-16 offsets. Use get_slide to find text first.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| bold | No | ||
| color | No | Text color as hex | |
| italic | No | ||
| linkUrl | No | Attach a hyperlink | |
| endIndex | Yes | End index | |
| fontSize | No | Font size in pt | |
| objectId | Yes | Page element object ID from get_slide | |
| alignment | No | Paragraph alignment | |
| underline | No | ||
| fontFamily | No | ||
| startIndex | Yes | Start index | |
| presentationId | Yes | Presentation ID. Found in the Google Slides URL: docs.google.com/presentation/d/<ID>/edit | |
| backgroundColor | No | Highlight color as hex |