> This page is for Workforce.

> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://docs.merge.dev/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://docs.merge.dev/_mcp/server.

# Google Docs

**Authentication:** OAuth. See [Magic Link](/merge-agent-handler/features/magic-link) for the runtime auth flow, or [Application credentials](/merge-agent-handler/admin-setup/add-oauth-credentials) to bring your own OAuth app.

## Sample use cases

* Open the `Q2 Strategy` doc and summarize the section on pricing.
* Create a new doc in the `Engineering / RFCs` folder titled 'Auth migration' from this template.
* Find every doc in `Shared drives / Sales` last edited over 90 days ago.

## Available Tools

#### insert_image

Insert an inline image at a specific location

#### create_named_range

Create a named range (bookmark) in a document

#### delete_named_range

Delete a named range from a document

#### create_header

Create a header section at a section break in a document

#### delete_header

Delete a header section from a document

#### create_footer

Create a footer section at a section break in a document

#### delete_footer

Delete a footer section from a document

#### create_document

Create a new Google Docs document with optional title

#### get_document

Retrieve a Google Docs document by ID

#### get_document_end_index

Get the end index for appending content to a document

#### insert_image_in_table_cell

Insert an image into a table cell by table position

#### insert_text_in_table_cell

Insert text into a table cell by table position

#### create_and_populate_table

Create and populate a table with data in one operation

#### batch_update_document

Apply multiple updates to a document in a single operation

#### insert_text

Insert text at a specific location in a document

#### delete_text

Delete text from a specified range in a document

#### replace_text

Find and replace all occurrences of text in a document

#### format_text

Apply text formatting to a range in a document

#### format_paragraph

Apply paragraph formatting to a range in a document

#### append_text

Append text to the end of a document

#### insert_table

Insert a table with specified rows and columns

#### insert_table_row

Insert a new row into an existing table

#### insert_table_column

Insert a new column into an existing table

#### delete_table_row

Delete a row from an existing table

#### delete_table_column

Delete a column from an existing table

#### create_footnote

Insert a footnote reference at the given index. The API creates a numbered reference and a corresponding footnote section at the page bottom; use inse…

#### create_paragraph_bullets

Apply bullet or numbered list formatting to all paragraphs that overlap a range. Use bullet_preset to pick the list style.

#### create_tab

Create a new tab in a Google Docs document

#### delete_paragraph_bullets

Remove bullet/numbered list formatting from all paragraphs that overlap a range. Paragraph text is preserved.

#### delete_tab

Delete a tab from a Google Docs document by tab ID. Use list_tabs to find tab IDs

#### insert_section_break

Insert a section break at a specific index. Use NEXT_PAGE/EVEN_PAGE/ODD_PAGE to start a new page; CONTINUOUS to keep flow.

#### list_tabs

List all tabs in a Google Docs document, including tab IDs and titles

#### merge_table_cells

Merge a rectangular block of table cells into one. Specify the upper-left and lower-right cell positions. Common in header rows and summary tables.

#### pin_table_header_rows

Pin the first N rows of a table as headers that repeat at the top of every page break. Pass 0 to unpin all header rows.

#### replace_named_range_content

Replace the content of a named range with new text. Named ranges auto-update their indices when surrounding content shifts, making them safer than rep…

#### unmerge_table_cells

Reverse a previous merge_table_cells operation, restoring the cells in the specified range to individual cells.

#### update_document_style

Set page margins, page size, or background color on the document. Provide only the fields you want to change.

#### update_named_style

Redefine a named style document-wide (HEADING_1 through HEADING_6, NORMAL_TEXT, TITLE, SUBTITLE).

#### update_section_style

Update section style (columns, separator, content direction, margins) over a range.

#### update_tab_properties

Update a tab's properties (e.g. rename it) in a Google Docs document

#### update_table_cell_style

Update visual styling on a single table cell - background color, borders, padding, vertical alignment.

#### update_table_column_properties

Set width on one or more columns in a table. Use width_type=FIXED_WIDTH with width_pt for explicit widths, or EVENLY_DISTRIBUTED to mark the targeted…

#### update_table_row_style

Set minimum row height and/or overflow prevention on one or more rows in a table. At least one of min_row_height_pt or prevent_overflow must be set.