update_paragraph_style
Format paragraphs in Google Docs by applying heading styles, bulleted or numbered lists, alignment, spacing, and indentation to a selected range.
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.
Args: user_google_email: User's Google email address document_id: Document ID to modify start_index: Start position (1-based) end_index: End position (exclusive) - should cover the entire paragraph heading_level: Heading level 0-6 (0 = NORMAL_TEXT, 1 = H1, 2 = H2, etc.) Use for semantic document structure alignment: Text alignment - 'START' (left), 'CENTER', 'END' (right), or 'JUSTIFIED' line_spacing: Line spacing multiplier (1.0 = single, 1.5 = 1.5x, 2.0 = double) indent_first_line: First line indent in points (e.g., 36 for 0.5 inch) indent_start: Left/start indent in points indent_end: Right/end indent in points space_above: Space above paragraph in points (e.g., 12 for one line) space_below: Space below paragraph in points list_type: Create a list from existing paragraphs ('UNORDERED' for bullets, 'ORDERED' for numbers) list_nesting_level: Nesting level for lists (0-8, where 0 is top level, default is 0) Use higher levels for nested/indented list items
Returns: str: Confirmation message with formatting details
Examples: # Apply H1 heading style update_paragraph_style(document_id="...", start_index=1, end_index=20, heading_level=1)
# Create a bulleted list
update_paragraph_style(document_id="...", start_index=1, end_index=50,
list_type="UNORDERED")
# Create a nested numbered list item
update_paragraph_style(document_id="...", start_index=1, end_index=30,
list_type="ORDERED", list_nesting_level=1)
# Apply H2 heading with custom spacing
update_paragraph_style(document_id="...", start_index=1, end_index=30,
heading_level=2, space_above=18, space_below=12)
# Center-align a paragraph with double spacing
update_paragraph_style(document_id="...", start_index=1, end_index=50,
alignment="CENTER", line_spacing=2.0)Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| alignment | No | ||
| end_index | Yes | ||
| list_type | No | ||
| indent_end | No | ||
| document_id | Yes | ||
| space_above | No | ||
| space_below | No | ||
| start_index | Yes | ||
| indent_start | No | ||
| line_spacing | No | ||
| heading_level | No | ||
| indent_first_line | No | ||
| user_google_email | Yes | ||
| list_nesting_level | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |