apply_paragraph_style
Apply paragraph-level formatting in Google Docs by specifying alignment, spacing, headings, and indentation using range, text search, or index targeting.
Instructions
Apply paragraph-level formatting (alignment, spacing, headings, etc.).
Target can be specified by:
Range: Provide start_index and end_index
Text search: Provide text_to_find (styles the containing paragraph)
Index: Provide index_within_paragraph
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| document_id | Yes | The ID of the Google Document | |
| alignment | No | ||
| indent_start | No | ||
| indent_end | No | ||
| space_above | No | ||
| space_below | No | ||
| named_style_type | No | ||
| keep_with_next | No | ||
| start_index | No | ||
| end_index | No | ||
| text_to_find | No | ||
| match_instance | No | Which instance of text to target | |
| index_within_paragraph | No |