modify_doc_text
Update and format text in Google Docs by inserting, replacing, or applying styles like bold, italic, underline, font size, and font family using specific start and end indexes.
Instructions
Modifies text in a Google Doc - can insert/replace text and/or apply formatting in a single operation.
Args: user_google_email: User's Google email address document_id: ID of the document to update start_index: Start position for operation (0-based) end_index: End position for text replacement/formatting (if not provided with text, text is inserted) text: New text to insert or replace with (optional - can format existing text without changing it) bold: Whether to make text bold (True/False/None to leave unchanged) italic: Whether to make text italic (True/False/None to leave unchanged) underline: Whether to underline text (True/False/None to leave unchanged) font_size: Font size in points font_family: Font family name (e.g., "Arial", "Times New Roman")
Returns: str: Confirmation message with operation details
Input Schema
Name | Required | Description | Default |
---|---|---|---|
bold | No | ||
document_id | Yes | ||
end_index | No | ||
font_family | No | ||
font_size | No | ||
italic | No | ||
start_index | Yes | ||
text | No | ||
underline | No | ||
user_google_email | Yes |