update_paragraph_style
Apply paragraph formatting, heading styles, and list formatting to Google Docs text ranges to structure documents and customize appearance.
Instructions
Apply paragraph-level formatting, heading styles, and/or list formatting to a range in a Google Doc.
This tool can apply named heading styles (H1-H6) for semantic document structure, create bulleted or numbered lists with nested indentation, and customize paragraph properties like alignment, spacing, and indentation. All operations can be applied in a single call.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| user_google_email | Yes | User's Google email address | |
| document_id | Yes | Document ID to modify | |
| start_index | Yes | Start position using Docs API indices from inspect_doc_structure. For the main body, 0 is also accepted as an alias for the first writable position. | |
| end_index | Yes | End position (exclusive) - should cover the entire paragraph | |
| heading_level | No | Heading level 0-6 (0 = NORMAL_TEXT, 1 = H1, 2 = H2, etc.) Use for semantic document structure | |
| alignment | No | Text alignment - 'START' (left), 'CENTER', 'END' (right), or 'JUSTIFIED' | |
| line_spacing | No | Line spacing multiplier (1.0 = single, 1.5 = 1.5x, 2.0 = double) | |
| indent_first_line | No | First line indent in points (e.g., 36 for 0.5 inch) | |
| indent_start | No | Left/start indent in points | |
| indent_end | No | Right/end indent in points | |
| space_above | No | Space above paragraph in points (e.g., 12 for one line) | |
| space_below | No | Space below paragraph in points | |
| named_style_type | No | Direct named style type - 'NORMAL_TEXT', 'TITLE', 'SUBTITLE', 'HEADING_1' through 'HEADING_6'. Mutually exclusive with heading_level. | |
| tab_id | No | Optional document tab ID to target | |
| segment_id | No | Optional header/footer/footnote segment ID to target | |
| direction | No | Paragraph direction - 'LEFT_TO_RIGHT' or 'RIGHT_TO_LEFT' | |
| keep_lines_together | No | Keep all lines of the paragraph together | |
| keep_with_next | No | Keep the paragraph with the next paragraph | |
| avoid_widow_and_orphan | No | Avoid widows/orphans for the paragraph | |
| page_break_before | No | Start the paragraph on a new page | |
| spacing_mode | No | 'NEVER_COLLAPSE' or 'COLLAPSE_LISTS' | |
| shading_color | No | Paragraph shading/background color (#RRGGBB) | |
| list_type | No | Create a list from existing paragraphs ('UNORDERED' for bullets, 'ORDERED' for numbers, 'CHECKBOX' for checklists) | |
| list_nesting_level | No | Nesting level for lists (0-8, where 0 is top level, default is 0) Use higher levels for nested/indented list items | |
| bullet_preset | No | Optional explicit Google Docs bullet preset |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |