formatSlidesText
Apply bold, italic, underline, strikethrough, font size, color, and font family to Google Slides text elements, using optional character ranges to format only selected text.
Instructions
Apply text formatting (bold, italic, underline, font size, color, etc.) to a text element in Google Slides. Use getPresentation to find element objectIds 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>"
},
"name": "formatSlidesText"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| bold | No | Make text bold | |
| italic | No | Make text italic | |
| endIndex | No | End character index (0-based) | |
| fontSize | No | Font size in points | |
| objectId | Yes | Object ID of the text element | |
| underline | No | Underline text | |
| fontFamily | No | Font family name (e.g. "Arial", "Roboto") | |
| startIndex | No | Start character index (0-based). Omit with endIndex to format all text. | |
| strikethrough | No | Strikethrough text | |
| presentationId | Yes | Presentation ID | |
| foregroundColor | No | Text color as RGB values (0-1) |