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.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"presentationId": "<presentationId>",
"objectId": "<objectId>",
"startIndex": "<startIndex>",
"endIndex": "<endIndex>"
},
"name": "format_text"
}
}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 |