SERVICE & TOOLS

Word

Word documents — create, edit, format with tables, images, styles, footnotes, comments

34 available tools

add_footnote_to_document

Adds a footnote to the specified paragraph in a Word document.

add_heading

Adds a heading to a Word document, optionally with a specific level, font, and bottom border.

add_page_break

Adds a page break to a Word document.

add_paragraph

Add a new paragraph to a Word document, optionally with a style and font formatting.

add_picture

Adds an image to a Word document, optionally setting its width in inches. Use this when you need to insert a picture from a local path or URL into an existing document.

add_table

Adds a table to a Word document, optionally filling it with data.

convert_to_pdf

Converts a Word document to PDF and registers the result as a new file, leaving the original Word document unchanged.

create_custom_style

Creates a custom paragraph style in a Word document, optionally based on an existing style and with its own font, size, weight, italic and color settings. Use this when you need a reusable style rathe…

create_document

Creates a new Word document with an optional title and author, returning a file_id you can use to reference it in later operations.

delete_paragraph

Deletes the paragraph at the given index in a Word document.

delete_word_document

Permanently deletes the specified Word document by its file ID.

download_word_document

Download a processed Word document and get its download URL. Use the file_id returned by upload_word_document or create_document.

find_text_in_document

Searches a Word document for the specified text and returns a list of matches.

format_table

Formats a table in a Word document, applying borders, header row styling, and cell shading. Table indexes start at 0.

format_text

Applies character formatting such as font, size, bold, italic, underline, and color to a specific text range within a paragraph of a Word document.

get_all_comments

Retrieves all comments in a Word document.

get_comments_by_author

Retrieves the comments left by a specific author in a Word document.

get_document_info

Retrieves metadata for a Word document, such as title, author, and creation date.

get_document_outline

Retrieves the structural outline of a Word document, including paragraphs, headings, and tables, as JSON. Use it to understand a document's layout before reading or editing specific sections.

get_document_text

Extracts all text content from a Word document as plain text.

get_paragraph_text_from_document

Retrieves the text of a specific paragraph in a Word document by its index.

insert_header_near_text

Inserts a heading near the specified text or paragraph in a Word document. Use target_text or target_paragraph_index to locate the anchor, and position to place the heading before or after it.

insert_line_or_paragraph_near_text

Inserts a new paragraph near the specified text or paragraph in a Word document, either before or after it.

insert_numbered_list_near_text

Inserts a bulleted or numbered list before or after a specified text or paragraph in a Word document. Use target_text to locate the insertion point, or target_paragraph_index when working by paragraph…

list_word_documents

Lists all cached Word documents for the current user, returning a file list with file_id and file information.

merge_table_cells

Merges a rectangular range of cells in a table in a Word document into a single cell. Use this when you need to combine cells across rows or columns in an existing table.

protect_document

Adds password protection to a Word document so it can only be opened with the given password.

replace_block_between_manual_anchors

Replaces the content between two anchor texts in a Word document with new paragraphs, useful for updating a marked section in place. If no end anchor is given, the block runs from the start anchor to …

replace_paragraph_block_below_header

Replaces the block of paragraphs directly below a given heading in a Word document, keeping the heading itself intact. Use it to swap out a whole section's body text in one call.

search_and_replace

Search a Word document for text and replace it with new text.

set_table_cell_shading

Sets the shading of a single table cell in a Word document, identified by table, row, and column index. Use fill_color as a hex value and pattern to control the fill style, which defaults to 'clear'.

set_table_column_width

Sets the width of a column in a table within a Word document.

unprotect_document

Removes password protection from a Word document using the given password.

upload_word_document

Uploads a Word document (.doc or .docx) from a URL to the server for processing and returns a file_id to use in subsequent operations.