docs_format_text
Format a text range in Google Docs by applying bold, italic, underline, font size, color, or strikethrough to selected indices.
Instructions
Apply formatting (bold, italic, underline, font size, color) to a text range in a Google Doc.
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": {
"document_id": "<document_id>",
"start_index": "<start_index>",
"end_index": "<end_index>"
},
"name": "docs_format_text"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| bold | No | ||
| italic | No | ||
| end_index | Yes | ||
| font_size | No | ||
| underline | No | ||
| document_id | Yes | ||
| start_index | Yes | ||
| strikethrough | No | ||
| foreground_color | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |