Word MCP Live

v1.2.0
io.github.ykarapazar/word-mcp-live Checked 13 hours ago Published 9 months ago

Live Microsoft Word editing via MCP — tracked changes, undo, comments, 40+ tools

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

create_document Create Word Document

Create a new Word document with optional metadata.

ParameterTypeDescription
filename *string
authorstring
titlestring

copy_document Copy Word Document

Create a copy of a Word document.

ParameterTypeDescription
source_filename *string
destination_filenamestring

get_document_info Get Document Info

Get information about a Word document.

ParameterTypeDescription
filename *string

get_document_text Get Document Text

Extract all text from a Word document.

ParameterTypeDescription
filename *string

get_document_outline Get Document Outline

Get the structure of a Word document.

ParameterTypeDescription
filename *string

list_available_documents List Available Documents

List all .docx files in the specified directory.

ParameterTypeDescription
directorystring

get_document_xml Get Document XML

Get the raw XML structure of a Word document.

ParameterTypeDescription
filename *string

insert_header_near_text Insert Header Near Text

Insert a header (with specified style) before or after the target paragraph. Specify by text or paragraph index. Args: filename (str), target_text (str, optional), header_title (str), position ('before' or 'after'), header_style (str, default 'Heading 1'), target_paragraph_index (int, optional).

ParameterTypeDescription
filename *string
header_stylestring
header_titlestring
positionstring
target_paragraph_indexinteger
target_textstring

insert_line_or_paragraph_near_text Insert Line Near Text

Insert a new line or paragraph (with specified or matched style) before or after the target paragraph. Specify by text or paragraph index. Args: filename (str), target_text (str, optional), line_text (str), position ('before' or 'after'), line_style (str, optional), target_paragraph_index (int, optional).

ParameterTypeDescription
filename *string
line_stylestring
line_textstring
positionstring
target_paragraph_indexinteger
target_textstring

insert_numbered_list_near_text Insert List Near Text

Insert a bulleted or numbered list before or after the target paragraph. Specify by text or paragraph index. Args: filename (str), target_text (str, optional), list_items (list of str), position ('before' or 'after'), target_paragraph_index (int, optional), bullet_type ('bullet' for bullets or 'number' for numbered lists, default: 'bullet').

ParameterTypeDescription
filename *string
bullet_typestring
list_itemsarray
positionstring
target_paragraph_indexinteger
target_textstring

add_paragraph Add Paragraph

Add a paragraph to a Word document with optional formatting.

ParameterTypeDescription
filename *stringPath to Word document
text *stringParagraph text content
boldbooleanMake text bold
colorstringText color as hex RGB (e.g., '000000')
font_namestringFont family (e.g., 'Helvetica', 'Times New Roman')
font_sizeintegerFont size in points (e.g., 14, 36)
italicbooleanMake text italic
stylestringOptional paragraph style name

add_heading Add Heading

Add a heading to a Word document with optional formatting.

ParameterTypeDescription
filename *stringPath to Word document
text *stringHeading text
boldbooleanMake heading bold
border_bottombooleanAdd bottom border (for section headers)
font_namestringFont family (e.g., 'Helvetica')
font_sizeintegerFont size in points (e.g., 14)
italicbooleanMake heading italic
levelintegerHeading level (1-9)

add_picture Add Picture

Add an image to a Word document.

ParameterTypeDescription
filename *string
image_path *string
widthnumber

add_table Add Table

Add a table to a Word document.

ParameterTypeDescription
cols *integer
filename *string
rows *integer
dataarray

add_page_break Add Page Break

Add a page break to the document.

ParameterTypeDescription
filename *string

delete_paragraph Delete Paragraph

Delete a paragraph from a document.

ParameterTypeDescription
filename *string
paragraph_index *integer

search_and_replace Search and Replace

Search for text and replace all occurrences.

ParameterTypeDescription
filename *string
find_text *string
replace_text *string

create_custom_style Create Custom Style

Create a custom style in the document.

ParameterTypeDescription
filename *string
style_name *string
base_stylestring
boldboolean
colorstring
font_namestring
font_sizeinteger
italicboolean

format_text Format Text

Format text within a paragraph using python-docx (cross-platform, file-based). Only supports: bold, italic, underline, color, font_size, font_name. Does NOT support: highlight colors, styles, tracked changes. For highlight/style changes, use word_live_format_text instead (Windows only). Args: filename: Path to the Word document (must not be open in Word). paragraph_index: Index of the paragraph (0-based). start_pos: Start position within the paragraph text. end_pos: End position within the paragraph text. bold: Set text bold (True/False)…

ParameterTypeDescription
end_pos *integer
filename *string
paragraph_index *integer
start_pos *integer
boldboolean
colorstring
font_namestring
font_sizeinteger
italicboolean
underlineboolean

format_table Format Table

Format a table with borders, shading, and structure.

ParameterTypeDescription
filename *string
table_index *integer
border_stylestring
has_header_rowboolean
shadingarray

set_table_cell_shading Set Table Cell Shading

Apply shading/filling to a specific table cell.

ParameterTypeDescription
col_index *integer
filename *string
fill_color *string
row_index *integer
table_index *integer
patternstring

apply_table_alternating_rows Apply Alternating Row Colors

Apply alternating row colors to a table for better readability.

ParameterTypeDescription
filename *string
table_index *integer
color1string
color2string

highlight_table_header Highlight Table Header

Apply special highlighting to table header row.

ParameterTypeDescription
filename *string
table_index *integer
header_colorstring
text_colorstring

merge_table_cells Merge Table Cells

Merge cells in a rectangular area of a table.

ParameterTypeDescription
end_col *integer
end_row *integer
filename *string
start_col *integer
start_row *integer
table_index *integer

merge_table_cells_horizontal Merge Cells Horizontally

Merge cells horizontally in a single row.

ParameterTypeDescription
end_col *integer
filename *string
row_index *integer
start_col *integer
table_index *integer

merge_table_cells_vertical Merge Cells Vertically

Merge cells vertically in a single column.

ParameterTypeDescription
col_index *integer
end_row *integer
filename *string
start_row *integer
table_index *integer

set_table_cell_alignment Set Cell Alignment

Set text alignment for a specific table cell.

ParameterTypeDescription
col_index *integer
filename *string
row_index *integer
table_index *integer
horizontalstring
verticalstring

set_table_alignment_all Set Table Alignment

Set text alignment for all cells in a table.

ParameterTypeDescription
filename *string
table_index *integer
horizontalstring
verticalstring

protect_document Protect Document

Add password protection to a Word document.

ParameterTypeDescription
filename *string
password *string

unprotect_document Unprotect Document

Remove password protection from a Word document.

ParameterTypeDescription
filename *string
password *string

add_footnote_to_document Add Footnote

Add a footnote to a specific paragraph in a Word document.

ParameterTypeDescription
filename *string
footnote_text *string
paragraph_index *integer

add_footnote_after_text Add Footnote After Text

Add a footnote after specific text with proper superscript formatting. This enhanced function ensures footnotes display correctly as superscript.

ParameterTypeDescription
filename *string
footnote_text *string
search_text *string
output_filenamestring

add_footnote_before_text Add Footnote Before Text

Add a footnote before specific text with proper superscript formatting. This enhanced function ensures footnotes display correctly as superscript.

ParameterTypeDescription
filename *string
footnote_text *string
search_text *string
output_filenamestring

add_footnote_enhanced Add Footnote Enhanced

Enhanced footnote addition with guaranteed superscript formatting. Adds footnote at the end of a specific paragraph with proper style handling.

ParameterTypeDescription
filename *string
footnote_text *string
paragraph_index *integer
output_filenamestring

add_endnote_to_document Add Endnote

Add an endnote to a specific paragraph in a Word document.

ParameterTypeDescription
endnote_text *string
filename *string
paragraph_index *integer

customize_footnote_style Customize Footnote Style

Customize footnote numbering and formatting in a Word document.

ParameterTypeDescription
filename *string
font_namestring
font_sizeinteger
numbering_formatstring
start_numberinteger

delete_footnote_from_document Delete Footnote

Delete a footnote from a Word document. Identify the footnote either by ID (1, 2, 3, etc.) or by searching for text near it.

ParameterTypeDescription
filename *string
footnote_idinteger
output_filenamestring
search_textstring

add_footnote_robust Add Footnote Robust

Add footnote with robust validation and Word compliance. This is the production-ready version with comprehensive error handling.

ParameterTypeDescription
filename *string
auto_repairboolean
footnote_textstring
paragraph_indexinteger
search_textstring
validate_locationboolean

validate_document_footnotes Validate Footnotes

Validate all footnotes in document for coherence and compliance. Returns detailed report on ID conflicts, orphaned content, missing styles, etc.

ParameterTypeDescription
filename *string

delete_footnote_robust Delete Footnote Robust

Delete footnote with comprehensive cleanup and orphan removal. Ensures complete removal from document.xml, footnotes.xml, and relationships.

ParameterTypeDescription
filename *string
clean_orphansboolean
footnote_idinteger
search_textstring

get_paragraph_text_from_document Get Paragraph Text

Get text from a specific paragraph in a Word document.

ParameterTypeDescription
filename *string
paragraph_index *integer

find_text_in_document Find Text

Find occurrences of specific text in a Word document.

ParameterTypeDescription
filename *string
text_to_find *string
match_caseboolean
whole_wordboolean

get_highlighted_text Get Highlighted Text

Extract all highlighted/colored text from a Word document, including text inside tables.

ParameterTypeDescription
filename *string
colorstring

convert_to_pdf Convert to PDF

Convert a Word document to PDF format.

ParameterTypeDescription
filename *string
output_filenamestring

replace_paragraph_block_below_header Replace Block Below Header

Reemplaza el bloque de párrafos debajo de un encabezado, evitando modificar TOC.

ParameterTypeDescription
filename *string
header_text *string
new_paragraphs *array
detect_block_end_fnstring

replace_block_between_manual_anchors Replace Block Between Anchors

Replace all content between start_anchor_text and end_anchor_text (or next logical header if not provided).

ParameterTypeDescription
filename *string
new_paragraphs *array
start_anchor_text *string
end_anchor_textstring
match_fnstring
new_paragraph_stylestring

get_all_comments Get All Comments

Extract all comments from a Word document.

ParameterTypeDescription
filename *string

get_comments_by_author Get Comments by Author

Extract comments from a specific author in a Word document.

ParameterTypeDescription
author *string
filename *string

get_comments_for_paragraph Get Comments for Paragraph

Extract comments for a specific paragraph in a Word document.

ParameterTypeDescription
filename *string
paragraph_index *integer

add_comment Add Comment

Add a comment to a Word document anchored to specific text. The comment will appear in Word's Review panel attached to the target text.

ParameterTypeDescription
comment_text *stringThe comment content
filename *stringPath to Word document
target_text *stringText in the document to attach the comment to
authorstringComment author name (env: MCP_AUTHOR)
initialsstringAuthor initials (env: MCP_AUTHOR_INITIALS)

set_table_column_width Set Column Width

Set the width of a specific table column.

ParameterTypeDescription
col_index *integer
filename *string
table_index *integer
width *number
width_typestring

set_table_column_widths Set Column Widths

Set the widths of multiple table columns.

ParameterTypeDescription
filename *string
table_index *integer
widths *array
width_typestring

set_table_width Set Table Width

Set the overall width of a table.

ParameterTypeDescription
filename *string
table_index *integer
width *number
width_typestring

auto_fit_table_columns Auto-Fit Table Columns

Set table columns to auto-fit based on content.

ParameterTypeDescription
filename *string
table_index *integer

format_table_cell_text Format Cell Text

Format text within a specific table cell.

ParameterTypeDescription
col_index *integer
filename *string
row_index *integer
table_index *integer
boldboolean
colorstring
font_namestring
font_sizeinteger
italicboolean
text_contentstring
underlineboolean

set_table_cell_padding Set Cell Padding

Set padding/margins for a specific table cell.

ParameterTypeDescription
col_index *integer
filename *string
row_index *integer
table_index *integer
bottomnumber
leftnumber
rightnumber
topnumber
unitstring

track_replace Track Replace

Replace text content with tracked changes (marks old as deleted, new as inserted). This changes TEXT CONTENT only — it does not change formatting (font, highlight, style). To change formatting, use word_live_format_text instead. Args: filename: Path to Word document. old_text: Text to find and mark as deleted. new_text: Replacement text to insert (must differ from old_text). author: Author name for the tracked change. Returns: JSON string with result

ParameterTypeDescription
filename *string
new_text *string
old_text *string
authorstring

track_insert Track Insert

Insert text content after a specific string, marked as a tracked insertion. This changes TEXT CONTENT only — it does not change formatting. Args: filename: Path to Word document. after_text: Text to search for; new text is inserted right after this. insert_text: Text to insert. author: Author name for the tracked change. Returns: JSON string with result

ParameterTypeDescription
after_text *string
filename *string
insert_text *string
authorstring

track_delete Track Delete

Mark text content as deleted (tracked deletion). This changes TEXT CONTENT only — it does not change formatting. Args: filename: Path to Word document. text: Text to mark as deleted. author: Author name for the tracked change. Returns: JSON string with result

ParameterTypeDescription
filename *string
text *string
authorstring

list_tracked_changes List Tracked Changes

List all tracked changes (insertions and deletions) in a Word document. Returns author, date, text, and paragraph context for each change.

ParameterTypeDescription
filename *string

accept_tracked_changes Accept Tracked Changes

Accept tracked changes: apply insertions (keep text) and remove deletions. Optionally filter by author or specific change IDs.

ParameterTypeDescription
filename *string
authorstring
change_idsarray

reject_tracked_changes Reject Tracked Changes

Reject tracked changes: remove insertions and restore deleted text. Optionally filter by author or specific change IDs.

ParameterTypeDescription
filename *string
authorstring
change_idsarray

word_screen_capture Word Screen Capture

[Windows only] Capture a screenshot of a Word document window. Returns the path to the saved PNG image. Requires Word to be running.

ParameterTypeDescription
filenamestring
output_pathstring

word_live_insert_text Word Live Insert Text

[Windows only] Insert text into a Word document that is open in Word. Position: 'start', 'end', 'cursor', or character offset. Requires Word running.

ParameterTypeDescription
bookmarkstring
filenamestring
positionstring
textstring
track_changesboolean

word_live_format_text Word Live Format Text

[Windows only] Format text in an open Word document: font, color, highlight, style, alignment, page breaks. Use this tool for any visual/formatting change that does NOT alter the text content itself. Two addressing modes (provide one): - start/end: Character positions (from word_live_find_text or word_live_get_page_text). - start_paragraph/end_paragraph: 1-indexed paragraph range (from word_live_get_text etc.). Args: filename: Document name or path (None = active document). start: Start character position. end: End character position. start…

ParameterTypeDescription
boldboolean
endinteger
end_paragraphinteger
filenamestring
font_colorstring
font_namestring
font_sizenumber
highlight_colorinteger
italicboolean
page_break_beforeboolean
paragraph_alignmentstring
preserve_direct_formattingboolean
startinteger
start_paragraphinteger
style_namestring
track_changesboolean
underlineboolean

word_live_replace_text Word Live Replace Text

[Windows only] Find and replace text in an open Word document. Uses Word's native Find & Replace, which works across tracked change boundaries (unlike manual delete+insert). Supports Word special characters when use_wildcards=True: ^m (manual page break), ^t (tab), ^p (paragraph mark), and Word wildcard syntax. Args: filename: Document name or path (None = active document). find_text: Text to find. With use_wildcards=True, supports ^m, ^t, ^p and Word wildcards. replace_text: Replacement text. Use "" to delete matches. match_case: Case-sensitiv…

ParameterTypeDescription
filenamestring
find_textstring
match_caseboolean
match_whole_wordboolean
replace_allboolean
replace_textstring
track_changesboolean
use_wildcardsboolean

word_live_add_table Word Live Add Table

[Windows only] Add a table to a Word document open in Word. Optionally provide data as 2D list. Default style is 'Table Grid' with autofit to window width. Set style=None for no style, autofit=None for legacy fixed behavior. Requires Word running.

ParameterTypeDescription
autofitstring
colsinteger
dataarray
filenamestring
positionstring
rowsinteger
stylestring
track_changesboolean

word_live_format_table Word Live Format Table

Format a table in an open Word document via COM. Supports border removal, cell formatting, column sizing, and table alignment. Use table_index=-1 for the last table, 1 for the first, etc. Args: filename: Document name or path (None = active document). table_index: 1-based table index, or -1 for the last table. border_style: Border style for all edges: "none", "single", "double", "dotted", "dashed", "thick". "none" removes all borders. cell_bold: List of [row, col, bold] entries (1-indexed) to set bold on cell text. Example:…

ParameterTypeDescription
autofitstring
border_stylestring
cell_alignmentarray
cell_boldarray
cell_shadingarray
column_widthsarray
filenamestring
table_alignmentstring
table_indexinteger

word_live_modify_table Word Live Modify Table

[Windows only] Modify a table in an open Word document. Operations: get_info, set_cell, add_column, delete_column, add_row, delete_row, merge_cells, autofit. All row/col indices are 1-based (Word COM standard). Args: filename: Document name or path (None = active document). table_index: 1-based table index (default 1). operation: One of: get_info, set_cell, add_column, delete_column, add_row, delete_row, merge_cells, autofit. row: Row index for set_cell, delete_row. col: Column index for set_cell, delete_column. text…

ParameterTypeDescription
autofit_modestring
before_colinteger
before_rowinteger
cellsarray
colinteger
end_colinteger
end_rowinteger
filenamestring
headerstring
operationstring
rowinteger
start_colinteger
start_rowinteger
table_indexinteger
textstring
track_changesboolean

word_live_delete_text Word Live Delete Text

[Windows only] Delete text from a Word document open in Word. Specify start/end character positions. Requires Word running.

ParameterTypeDescription
endinteger
filenamestring
startinteger
track_changesboolean

word_live_apply_list Word Live Apply List

[Windows only] Apply or remove bullet/numbered/multilevel list formatting on paragraphs. Args: filename: Document name or path (None = active document). start_paragraph: First paragraph to format (1-indexed, required). end_paragraph: Last paragraph to format (1-indexed, defaults to start_paragraph). list_type: "bullet", "number", or "multilevel" (outline numbered). level: Indentation level (0 = first level, 1 = second level, etc.). For multilevel, this sets the list level per paragraph. remove: If True, removes list formatting fr…

ParameterTypeDescription
continue_previousboolean
end_paragraphinteger
filenamestring
levelinteger
list_typestring
number_formatobject
removeboolean
start_atobject
start_paragraphinteger
track_changesboolean

word_live_setup_heading_numbering Word Live Setup Heading Numbering

[Windows only] Set up auto-numbered headings with multilevel list (1. / 1.1). Creates a multilevel list template linked to Heading 1 and Heading 2 styles. Default formats: Level 1 = "%1." (produces "1."), Level 2 = "%1.%2" (produces "1.1"). Custom formats supported — e.g., h1_number_format="MADDE %1 – " produces "MADDE 1 – ". Applies styles and numbering to the specified paragraphs, then optionally strips manual number prefixes. Recognizes two patterns: - Numeric: "1. ", "6.2. ", "10.3 " (regex: ^\d+(\.\d+)*\.?\s+) - MADDE: "MADDE 6 – ", "MADDE 10 - " (reg…

ParameterTypeDescription
alignmentstring
boldboolean
filenamestring
font_colorstring
font_namestring
h1_number_formatstring
h1_paragraphsarray
h1_sizenumber
h1_space_afternumber
h1_space_beforenumber
h2_number_formatstring
h2_paragraphsarray
h2_sizenumber
h2_space_afternumber
h2_space_beforenumber
line_spacingnumber
strip_manual_numbersboolean

word_live_get_text Word Live Get Text

[Windows only] Get all text from a Word document open in Word, paragraph by paragraph. Requires Word running.

ParameterTypeDescription
filenamestring

word_live_get_paragraph_format Word Live Get Paragraph Format

[Windows only] Inspect paragraph formatting properties for diagnostics. Returns detailed formatting info for each paragraph in the range. Essential for debugging layout issues like unexpected page breaks (caused by keep_with_next chains), broken list formatting, wrong styles, or inconsistent fonts. Per-paragraph fields returned: index, text_preview (first 80 chars), char_start, char_end, style, font_name, font_size, bold, italic, alignment, space_before_pt, space_after_pt, line_spacing, line_spacing_rule, page_break_before, keep_with_next, keep_together. Also: lis…

ParameterTypeDescription
end_paragraphinteger
filenamestring
include_runsboolean
start_paragraphinteger

word_live_get_info Word Live Get Info

[Windows only] Get document info (pages, words, sections, etc.) from a Word document open in Word. Requires Word running.

ParameterTypeDescription
filenamestring

word_live_find_text Word Live Find Text

[Windows only] Find text in a Word document open in Word. Returns positions and context. With use_wildcards=True, supports ^m (page break), ^t (tab), ^p (paragraph mark) and Word wildcards. context_chars controls how many characters of surrounding context to return (default 60). Requires Word running.

ParameterTypeDescription
context_charsinteger
filenamestring
match_caseboolean
max_resultsinteger
search_textstring
use_wildcardsboolean
whole_wordboolean

word_live_get_comments Word Live Get Comments

[Windows only] Get all comments from a Word document open in Word. Requires Word running.

ParameterTypeDescription
filenamestring

word_live_add_comment Word Live Add Comment

[Windows only] Add a comment to a Word document open in Word. Specify start/end character positions or paragraph_index (1-indexed). Requires Word running.

ParameterTypeDescription
authorstring
endinteger
filenamestring
paragraph_indexinteger
startinteger
textstring

word_live_list_revisions Word Live List Revisions

[Windows only] List all tracked changes (revisions) in a Word document open in Word. Requires Word running.

ParameterTypeDescription
filenamestring

word_live_accept_revisions Word Live Accept Revisions

[Windows only] Accept tracked changes in a Word document open in Word. Filter by author or specific revision IDs. Requires Word running.

ParameterTypeDescription
authorstring
filenamestring
revision_idsarray

word_live_reject_revisions Word Live Reject Revisions

[Windows only] Reject tracked changes in a Word document open in Word. Filter by author or specific revision IDs. Requires Word running.

ParameterTypeDescription
authorstring
filenamestring
revision_idsarray

word_live_get_page_text Word Live Get Page Text

[Windows only] Get text from specific page(s) of an open Word document. Returns paragraphs on the requested page(s) with char_start/char_end offsets that can be passed directly to word_live_format_text, word_live_delete_text, etc. Uses Word's GoTo API to find page boundaries. For long legal documents, this is much more efficient than reading all paragraphs. Args: filename: Document name or path (None = active document). page: Page number to read (1-indexed, required). end_page: Last page to read (inclusive). If None, reads only `page`. Return…

ParameterTypeDescription
end_pageinteger
filenamestring
pageinteger

word_live_get_undo_history Word Live Get Undo History

[Windows only] Get the undo stack from a Word document open in Word. Shows MCP tool operations as named entries. Requires Word running.

ParameterTypeDescription
filenamestring

word_live_undo Word Live Undo

[Windows only] Undo the last N operations in a Word document open in Word. Each MCP tool call is one undo entry. Requires Word running.

ParameterTypeDescription
filenamestring
timesinteger

word_live_diagnose_layout Word Live Diagnose Layout

[Windows only] Scan an open Word document for common layout problems. Performs a single-pass scan of all paragraphs and reports issues that cause unexpected layout behavior (empty pages, content pushed to wrong page, etc.). Checks performed: 1. keep_with_next chains: 5+ consecutive paragraphs with keep_with_next=true push content to the next page as a block (severity: high). 2. Heading styles on body text: Heading style on paragraphs >100 chars (medium). 3. PageBreakBefore on non-headings: may cause unexpected blank space (medium). 4. Manual page break coun…

ParameterTypeDescription
filenamestring

word_live_set_page_layout Word Live Set Page Layout

[Windows only] Set page layout (orientation, size, margins) for a section in a Word document open in Word. Requires Word running.

ParameterTypeDescription
filenamestring
margin_bottom_inchesnumber
margin_left_inchesnumber
margin_right_inchesnumber
margin_top_inchesnumber
orientationstring
page_height_inchesnumber
page_width_inchesnumber
section_indexinteger

word_live_add_page_numbers Word Live Add Page Numbers

[Windows only] Add page numbers to header or footer in a Word document open in Word. Requires Word running.

ParameterTypeDescription
alignmentstring
filenamestring
include_totalboolean
positionstring
prefixstring
section_indexinteger
suffixstring

word_live_add_section_break Word Live Add Section Break

[Windows only] Add a section break (new_page, continuous, even_page, odd_page) to a Word document open in Word. Requires Word running.

ParameterTypeDescription
break_typestring
filenamestring

word_live_set_paragraph_spacing Word Live Set Paragraph Spacing

[Windows only] Set paragraph spacing (before/after/line) in a Word document open in Word. Paragraphs are 1-indexed. Requires Word running.

ParameterTypeDescription
end_paragraphinteger
filenamestring
line_spacingnumber
line_spacing_rulestring
paragraph_indexinteger
space_after_ptnumber
space_before_ptnumber
start_paragraphinteger

word_live_add_bookmark Word Live Add Bookmark

[Windows only] Add a named bookmark at a paragraph in a Word document open in Word. Paragraph is 1-indexed. Requires Word running.

ParameterTypeDescription
bookmark_namestring
filenamestring
paragraph_indexinteger

word_live_add_watermark Word Live Add Watermark

[Windows only] Add a diagonal text watermark to a Word document open in Word. Requires Word running.

ParameterTypeDescription
filenamestring
font_colorstring
font_sizeinteger
rotationinteger
section_indexinteger
textstring

set_page_layout Set Page Layout

Set page layout (orientation, size, margins) for a document section.

ParameterTypeDescription
filename *string
margin_bottom_inchesnumber
margin_left_inchesnumber
margin_right_inchesnumber
margin_top_inchesnumber
orientationstring
page_height_inchesnumber
page_width_inchesnumber
section_indexinteger

add_page_numbers Add Page Numbers

Add page numbers to header or footer using PAGE/NUMPAGES fields.

ParameterTypeDescription
filename *string
alignmentstring
include_totalboolean
positionstring
prefixstring
section_indexinteger
suffixstring

add_section_break Add Section Break

Add a section break (new_page, continuous, even_page, odd_page).

ParameterTypeDescription
filename *string
break_typestring

set_paragraph_spacing Set Paragraph Spacing

Set paragraph spacing (before/after/line) for one or a range of paragraphs. line_spacing_rule: single, 1.5_lines, double, exactly, at_least, multiple.

ParameterTypeDescription
filename *string
end_paragraphinteger
line_spacingnumber
line_spacing_rulestring
paragraph_indexinteger
space_after_ptnumber
space_before_ptnumber
start_paragraphinteger

add_bookmark Add Bookmark

Add a named bookmark at a paragraph for cross-referencing.

ParameterTypeDescription
bookmark_name *string
filename *string
paragraph_index *integer

add_watermark Add Watermark

Add a diagonal text watermark (e.g. TASLAK, GİZLİ, DRAFT) to a document.

ParameterTypeDescription
filename *string
font_colorstring
font_sizeinteger
rotationinteger
section_indexinteger
textstring

add_table_of_contents Add Table of Contents

Add a table of contents based on heading styles.

ParameterTypeDescription
filename *string
max_levelinteger
titlestring

merge_documents Merge Documents

Merge multiple Word documents into a single target document.

ParameterTypeDescription
source_filenames *array
target_filename *string
add_page_breaksboolean

add_restricted_editing Add Restricted Editing

Add restricted editing to a document, allowing editing only in specified sections.

ParameterTypeDescription
editable_sections *array
filename *string
password *string

add_digital_signature Add Digital Signature

Add a digital signature to a Word document.

ParameterTypeDescription
filename *string
signer_name *string
reasonstring

verify_document Verify Document

Verify document protection and/or digital signature.

ParameterTypeDescription
filename *string
passwordstring