Google Docs

gdoc_update_paragraph_style

Update paragraph style (alignment, spacing, indentation, heading) for a range.

Remote node2flow/google-docs

Other tools also called gdoc_update_paragraph_style? See providers with this name

Input Schema


            {
  "type": "object",
  "properties": {
    "alignment": {
      "enum": [
        "START",
        "CENTER",
        "END",
        "JUSTIFIED"
      ],
      "type": "string",
      "description": "Paragraph alignment"
    },
    "direction": {
      "type": "string",
      "description": "Text direction: LEFT_TO_RIGHT or RIGHT_TO_LEFT"
    },
    "end_index": {
      "type": "number",
      "description": "End index of the paragraph range (exclusive)"
    },
    "segment_id": {
      "type": "string",
      "description": "Segment ID (header/footer ID). Omit for body content"
    },
    "document_id": {
      "type": "string",
      "description": "The document ID"
    },
    "start_index": {
      "type": "number",
      "description": "Start index of the paragraph range (inclusive)"
    },
    "line_spacing": {
      "type": "number",
      "description": "Line spacing as percentage (e.g., 100 = single, 200 = double)"
    },
    "named_style_type": {
      "enum": [
        "NORMAL_TEXT",
        "TITLE",
        "SUBTITLE",
        "HEADING_1",
        "HEADING_2",
        "HEADING_3",
        "HEADING_4",
        "HEADING_5",
        "HEADING_6"
      ],
      "type": "string",
      "description": "Named style: NORMAL_TEXT, TITLE, SUBTITLE, HEADING_1 through HEADING_6"
    },
    "indent_end_magnitude": {
      "type": "number",
      "description": "End (right) indent in points"
    },
    "space_above_magnitude": {
      "type": "number",
      "description": "Space above paragraph in points"
    },
    "space_below_magnitude": {
      "type": "number",
      "description": "Space below paragraph in points"
    },
    "indent_start_magnitude": {
      "type": "number",
      "description": "Start (left) indent in points"
    },
    "indent_first_line_magnitude": {
      "type": "number",
      "description": "First line indent in points"
    }
  }
}