Word MCP Live
v1.2.0Live 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.
| Parameter | Type | Description |
|---|---|---|
filename * | string | |
author | string | |
title | string |
copy_document Copy Word Document
Create a copy of a Word document.
| Parameter | Type | Description |
|---|---|---|
source_filename * | string | |
destination_filename | string |
get_document_info Get Document Info
Get information about a Word document.
| Parameter | Type | Description |
|---|---|---|
filename * | string |
get_document_text Get Document Text
Extract all text from a Word document.
| Parameter | Type | Description |
|---|---|---|
filename * | string |
get_document_outline Get Document Outline
Get the structure of a Word document.
| Parameter | Type | Description |
|---|---|---|
filename * | string |
list_available_documents List Available Documents
List all .docx files in the specified directory.
| Parameter | Type | Description |
|---|---|---|
directory | string |
get_document_xml Get Document XML
Get the raw XML structure of a Word document.
| Parameter | Type | Description |
|---|---|---|
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).
| Parameter | Type | Description |
|---|---|---|
filename * | string | |
header_style | string | |
header_title | string | |
position | string | |
target_paragraph_index | integer | |
target_text | string |
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).
| Parameter | Type | Description |
|---|---|---|
filename * | string | |
line_style | string | |
line_text | string | |
position | string | |
target_paragraph_index | integer | |
target_text | string |
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').
| Parameter | Type | Description |
|---|---|---|
filename * | string | |
bullet_type | string | |
list_items | array | |
position | string | |
target_paragraph_index | integer | |
target_text | string |
add_paragraph Add Paragraph
Add a paragraph to a Word document with optional formatting.
| Parameter | Type | Description |
|---|---|---|
filename * | string | Path to Word document |
text * | string | Paragraph text content |
bold | boolean | Make text bold |
color | string | Text color as hex RGB (e.g., '000000') |
font_name | string | Font family (e.g., 'Helvetica', 'Times New Roman') |
font_size | integer | Font size in points (e.g., 14, 36) |
italic | boolean | Make text italic |
style | string | Optional paragraph style name |
add_heading Add Heading
Add a heading to a Word document with optional formatting.
| Parameter | Type | Description |
|---|---|---|
filename * | string | Path to Word document |
text * | string | Heading text |
bold | boolean | Make heading bold |
border_bottom | boolean | Add bottom border (for section headers) |
font_name | string | Font family (e.g., 'Helvetica') |
font_size | integer | Font size in points (e.g., 14) |
italic | boolean | Make heading italic |
level | integer | Heading level (1-9) |
add_picture Add Picture
Add an image to a Word document.
| Parameter | Type | Description |
|---|---|---|
filename * | string | |
image_path * | string | |
width | number |
add_table Add Table
Add a table to a Word document.
| Parameter | Type | Description |
|---|---|---|
cols * | integer | |
filename * | string | |
rows * | integer | |
data | array |
add_page_break Add Page Break
Add a page break to the document.
| Parameter | Type | Description |
|---|---|---|
filename * | string |
delete_paragraph Delete Paragraph
Delete a paragraph from a document.
| Parameter | Type | Description |
|---|---|---|
filename * | string | |
paragraph_index * | integer |
search_and_replace Search and Replace
Search for text and replace all occurrences.
| Parameter | Type | Description |
|---|---|---|
filename * | string | |
find_text * | string | |
replace_text * | string |
create_custom_style Create Custom Style
Create a custom style in the document.
| Parameter | Type | Description |
|---|---|---|
filename * | string | |
style_name * | string | |
base_style | string | |
bold | boolean | |
color | string | |
font_name | string | |
font_size | integer | |
italic | boolean |
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)…
| Parameter | Type | Description |
|---|---|---|
end_pos * | integer | |
filename * | string | |
paragraph_index * | integer | |
start_pos * | integer | |
bold | boolean | |
color | string | |
font_name | string | |
font_size | integer | |
italic | boolean | |
underline | boolean |
format_table Format Table
Format a table with borders, shading, and structure.
| Parameter | Type | Description |
|---|---|---|
filename * | string | |
table_index * | integer | |
border_style | string | |
has_header_row | boolean | |
shading | array |
set_table_cell_shading Set Table Cell Shading
Apply shading/filling to a specific table cell.
| Parameter | Type | Description |
|---|---|---|
col_index * | integer | |
filename * | string | |
fill_color * | string | |
row_index * | integer | |
table_index * | integer | |
pattern | string |
apply_table_alternating_rows Apply Alternating Row Colors
Apply alternating row colors to a table for better readability.
| Parameter | Type | Description |
|---|---|---|
filename * | string | |
table_index * | integer | |
color1 | string | |
color2 | string |
highlight_table_header Highlight Table Header
Apply special highlighting to table header row.
| Parameter | Type | Description |
|---|---|---|
filename * | string | |
table_index * | integer | |
header_color | string | |
text_color | string |
merge_table_cells Merge Table Cells
Merge cells in a rectangular area of a table.
| Parameter | Type | Description |
|---|---|---|
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.
| Parameter | Type | Description |
|---|---|---|
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.
| Parameter | Type | Description |
|---|---|---|
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.
| Parameter | Type | Description |
|---|---|---|
col_index * | integer | |
filename * | string | |
row_index * | integer | |
table_index * | integer | |
horizontal | string | |
vertical | string |
set_table_alignment_all Set Table Alignment
Set text alignment for all cells in a table.
| Parameter | Type | Description |
|---|---|---|
filename * | string | |
table_index * | integer | |
horizontal | string | |
vertical | string |
protect_document Protect Document
Add password protection to a Word document.
| Parameter | Type | Description |
|---|---|---|
filename * | string | |
password * | string |
unprotect_document Unprotect Document
Remove password protection from a Word document.
| Parameter | Type | Description |
|---|---|---|
filename * | string | |
password * | string |
add_footnote_to_document Add Footnote
Add a footnote to a specific paragraph in a Word document.
| Parameter | Type | Description |
|---|---|---|
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.
| Parameter | Type | Description |
|---|---|---|
filename * | string | |
footnote_text * | string | |
search_text * | string | |
output_filename | string |
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.
| Parameter | Type | Description |
|---|---|---|
filename * | string | |
footnote_text * | string | |
search_text * | string | |
output_filename | string |
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.
| Parameter | Type | Description |
|---|---|---|
filename * | string | |
footnote_text * | string | |
paragraph_index * | integer | |
output_filename | string |
add_endnote_to_document Add Endnote
Add an endnote to a specific paragraph in a Word document.
| Parameter | Type | Description |
|---|---|---|
endnote_text * | string | |
filename * | string | |
paragraph_index * | integer |
customize_footnote_style Customize Footnote Style
Customize footnote numbering and formatting in a Word document.
| Parameter | Type | Description |
|---|---|---|
filename * | string | |
font_name | string | |
font_size | integer | |
numbering_format | string | |
start_number | integer |
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.
| Parameter | Type | Description |
|---|---|---|
filename * | string | |
footnote_id | integer | |
output_filename | string | |
search_text | string |
add_footnote_robust Add Footnote Robust
Add footnote with robust validation and Word compliance. This is the production-ready version with comprehensive error handling.
| Parameter | Type | Description |
|---|---|---|
filename * | string | |
auto_repair | boolean | |
footnote_text | string | |
paragraph_index | integer | |
search_text | string | |
validate_location | boolean |
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.
| Parameter | Type | Description |
|---|---|---|
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.
| Parameter | Type | Description |
|---|---|---|
filename * | string | |
clean_orphans | boolean | |
footnote_id | integer | |
search_text | string |
get_paragraph_text_from_document Get Paragraph Text
Get text from a specific paragraph in a Word document.
| Parameter | Type | Description |
|---|---|---|
filename * | string | |
paragraph_index * | integer |
find_text_in_document Find Text
Find occurrences of specific text in a Word document.
| Parameter | Type | Description |
|---|---|---|
filename * | string | |
text_to_find * | string | |
match_case | boolean | |
whole_word | boolean |
get_highlighted_text Get Highlighted Text
Extract all highlighted/colored text from a Word document, including text inside tables.
| Parameter | Type | Description |
|---|---|---|
filename * | string | |
color | string |
convert_to_pdf Convert to PDF
Convert a Word document to PDF format.
| Parameter | Type | Description |
|---|---|---|
filename * | string | |
output_filename | string |
replace_paragraph_block_below_header Replace Block Below Header
Reemplaza el bloque de párrafos debajo de un encabezado, evitando modificar TOC.
| Parameter | Type | Description |
|---|---|---|
filename * | string | |
header_text * | string | |
new_paragraphs * | array | |
detect_block_end_fn | string |
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).
| Parameter | Type | Description |
|---|---|---|
filename * | string | |
new_paragraphs * | array | |
start_anchor_text * | string | |
end_anchor_text | string | |
match_fn | string | |
new_paragraph_style | string |
get_all_comments Get All Comments
Extract all comments from a Word document.
| Parameter | Type | Description |
|---|---|---|
filename * | string |
get_comments_by_author Get Comments by Author
Extract comments from a specific author in a Word document.
| Parameter | Type | Description |
|---|---|---|
author * | string | |
filename * | string |
get_comments_for_paragraph Get Comments for Paragraph
Extract comments for a specific paragraph in a Word document.
| Parameter | Type | Description |
|---|---|---|
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.
| Parameter | Type | Description |
|---|---|---|
comment_text * | string | The comment content |
filename * | string | Path to Word document |
target_text * | string | Text in the document to attach the comment to |
author | string | Comment author name (env: MCP_AUTHOR) |
initials | string | Author initials (env: MCP_AUTHOR_INITIALS) |
manage_hyperlinks Manage Hyperlinks
Add or manage hyperlinks in a Word document. Finds the specified text and converts it to a clickable hyperlink with blue underline.
| Parameter | Type | Description |
|---|---|---|
filename * | string | Path to Word document |
action | string | Action to perform ("add" to add a hyperlink) |
paragraph_index | integer | If specified, only search in this paragraph (0-based) |
text | string | Text to convert to a hyperlink |
url | string | URL the hyperlink should point to |
set_table_column_width Set Column Width
Set the width of a specific table column.
| Parameter | Type | Description |
|---|---|---|
col_index * | integer | |
filename * | string | |
table_index * | integer | |
width * | number | |
width_type | string |
set_table_column_widths Set Column Widths
Set the widths of multiple table columns.
| Parameter | Type | Description |
|---|---|---|
filename * | string | |
table_index * | integer | |
widths * | array | |
width_type | string |
set_table_width Set Table Width
Set the overall width of a table.
| Parameter | Type | Description |
|---|---|---|
filename * | string | |
table_index * | integer | |
width * | number | |
width_type | string |
auto_fit_table_columns Auto-Fit Table Columns
Set table columns to auto-fit based on content.
| Parameter | Type | Description |
|---|---|---|
filename * | string | |
table_index * | integer |
format_table_cell_text Format Cell Text
Format text within a specific table cell.
| Parameter | Type | Description |
|---|---|---|
col_index * | integer | |
filename * | string | |
row_index * | integer | |
table_index * | integer | |
bold | boolean | |
color | string | |
font_name | string | |
font_size | integer | |
italic | boolean | |
text_content | string | |
underline | boolean |
set_table_cell_padding Set Cell Padding
Set padding/margins for a specific table cell.
| Parameter | Type | Description |
|---|---|---|
col_index * | integer | |
filename * | string | |
row_index * | integer | |
table_index * | integer | |
bottom | number | |
left | number | |
right | number | |
top | number | |
unit | string |
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
| Parameter | Type | Description |
|---|---|---|
filename * | string | |
new_text * | string | |
old_text * | string | |
author | string |
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
| Parameter | Type | Description |
|---|---|---|
after_text * | string | |
filename * | string | |
insert_text * | string | |
author | string |
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
| Parameter | Type | Description |
|---|---|---|
filename * | string | |
text * | string | |
author | string |
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.
| Parameter | Type | Description |
|---|---|---|
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.
| Parameter | Type | Description |
|---|---|---|
filename * | string | |
author | string | |
change_ids | array |
reject_tracked_changes Reject Tracked Changes
Reject tracked changes: remove insertions and restore deleted text. Optionally filter by author or specific change IDs.
| Parameter | Type | Description |
|---|---|---|
filename * | string | |
author | string | |
change_ids | array |
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.
| Parameter | Type | Description |
|---|---|---|
filename | string | |
output_path | string |
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.
| Parameter | Type | Description |
|---|---|---|
bookmark | string | |
filename | string | |
position | string | |
text | string | |
track_changes | boolean |
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…
| Parameter | Type | Description |
|---|---|---|
bold | boolean | |
end | integer | |
end_paragraph | integer | |
filename | string | |
font_color | string | |
font_name | string | |
font_size | number | |
highlight_color | integer | |
italic | boolean | |
page_break_before | boolean | |
paragraph_alignment | string | |
preserve_direct_formatting | boolean | |
start | integer | |
start_paragraph | integer | |
style_name | string | |
track_changes | boolean | |
underline | boolean |
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…
| Parameter | Type | Description |
|---|---|---|
filename | string | |
find_text | string | |
match_case | boolean | |
match_whole_word | boolean | |
replace_all | boolean | |
replace_text | string | |
track_changes | boolean | |
use_wildcards | boolean |
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.
| Parameter | Type | Description |
|---|---|---|
autofit | string | |
cols | integer | |
data | array | |
filename | string | |
position | string | |
rows | integer | |
style | string | |
track_changes | boolean |
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:…
| Parameter | Type | Description |
|---|---|---|
autofit | string | |
border_style | string | |
cell_alignment | array | |
cell_bold | array | |
cell_shading | array | |
column_widths | array | |
filename | string | |
table_alignment | string | |
table_index | integer |
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…
| Parameter | Type | Description |
|---|---|---|
autofit_mode | string | |
before_col | integer | |
before_row | integer | |
cells | array | |
col | integer | |
end_col | integer | |
end_row | integer | |
filename | string | |
header | string | |
operation | string | |
row | integer | |
start_col | integer | |
start_row | integer | |
table_index | integer | |
text | string | |
track_changes | boolean |
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.
| Parameter | Type | Description |
|---|---|---|
end | integer | |
filename | string | |
start | integer | |
track_changes | boolean |
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…
| Parameter | Type | Description |
|---|---|---|
continue_previous | boolean | |
end_paragraph | integer | |
filename | string | |
level | integer | |
list_type | string | |
number_format | object | |
remove | boolean | |
start_at | object | |
start_paragraph | integer | |
track_changes | boolean |
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…
| Parameter | Type | Description |
|---|---|---|
alignment | string | |
bold | boolean | |
filename | string | |
font_color | string | |
font_name | string | |
h1_number_format | string | |
h1_paragraphs | array | |
h1_size | number | |
h1_space_after | number | |
h1_space_before | number | |
h2_number_format | string | |
h2_paragraphs | array | |
h2_size | number | |
h2_space_after | number | |
h2_space_before | number | |
line_spacing | number | |
strip_manual_numbers | boolean |
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.
| Parameter | Type | Description |
|---|---|---|
filename | string |
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…
| Parameter | Type | Description |
|---|---|---|
end_paragraph | integer | |
filename | string | |
include_runs | boolean | |
start_paragraph | integer |
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.
| Parameter | Type | Description |
|---|---|---|
filename | string |
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.
| Parameter | Type | Description |
|---|---|---|
context_chars | integer | |
filename | string | |
match_case | boolean | |
max_results | integer | |
search_text | string | |
use_wildcards | boolean | |
whole_word | boolean |
word_live_get_comments Word Live Get Comments
[Windows only] Get all comments from a Word document open in Word. Requires Word running.
| Parameter | Type | Description |
|---|---|---|
filename | string |
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.
| Parameter | Type | Description |
|---|---|---|
author | string | |
end | integer | |
filename | string | |
paragraph_index | integer | |
start | integer | |
text | string |
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.
| Parameter | Type | Description |
|---|---|---|
filename | string |
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.
| Parameter | Type | Description |
|---|---|---|
author | string | |
filename | string | |
revision_ids | array |
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.
| Parameter | Type | Description |
|---|---|---|
author | string | |
filename | string | |
revision_ids | array |
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…
| Parameter | Type | Description |
|---|---|---|
end_page | integer | |
filename | string | |
page | integer |
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.
| Parameter | Type | Description |
|---|---|---|
filename | string |
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.
| Parameter | Type | Description |
|---|---|---|
filename | string | |
times | integer |
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…
| Parameter | Type | Description |
|---|---|---|
filename | string |
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.
| Parameter | Type | Description |
|---|---|---|
filename | string | |
margin_bottom_inches | number | |
margin_left_inches | number | |
margin_right_inches | number | |
margin_top_inches | number | |
orientation | string | |
page_height_inches | number | |
page_width_inches | number | |
section_index | integer |
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.
| Parameter | Type | Description |
|---|---|---|
alignment | string | |
filename | string | |
include_total | boolean | |
position | string | |
prefix | string | |
section_index | integer | |
suffix | string |
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.
| Parameter | Type | Description |
|---|---|---|
break_type | string | |
filename | string |
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.
| Parameter | Type | Description |
|---|---|---|
end_paragraph | integer | |
filename | string | |
line_spacing | number | |
line_spacing_rule | string | |
paragraph_index | integer | |
space_after_pt | number | |
space_before_pt | number | |
start_paragraph | integer |
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.
| Parameter | Type | Description |
|---|---|---|
bookmark_name | string | |
filename | string | |
paragraph_index | integer |
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.
| Parameter | Type | Description |
|---|---|---|
filename | string | |
font_color | string | |
font_size | integer | |
rotation | integer | |
section_index | integer | |
text | string |
set_page_layout Set Page Layout
Set page layout (orientation, size, margins) for a document section.
| Parameter | Type | Description |
|---|---|---|
filename * | string | |
margin_bottom_inches | number | |
margin_left_inches | number | |
margin_right_inches | number | |
margin_top_inches | number | |
orientation | string | |
page_height_inches | number | |
page_width_inches | number | |
section_index | integer |
add_page_numbers Add Page Numbers
Add page numbers to header or footer using PAGE/NUMPAGES fields.
| Parameter | Type | Description |
|---|---|---|
filename * | string | |
alignment | string | |
include_total | boolean | |
position | string | |
prefix | string | |
section_index | integer | |
suffix | string |
add_section_break Add Section Break
Add a section break (new_page, continuous, even_page, odd_page).
| Parameter | Type | Description |
|---|---|---|
filename * | string | |
break_type | string |
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.
| Parameter | Type | Description |
|---|---|---|
filename * | string | |
end_paragraph | integer | |
line_spacing | number | |
line_spacing_rule | string | |
paragraph_index | integer | |
space_after_pt | number | |
space_before_pt | number | |
start_paragraph | integer |
add_bookmark Add Bookmark
Add a named bookmark at a paragraph for cross-referencing.
| Parameter | Type | Description |
|---|---|---|
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.
| Parameter | Type | Description |
|---|---|---|
filename * | string | |
font_color | string | |
font_size | integer | |
rotation | integer | |
section_index | integer | |
text | string |
add_table_of_contents Add Table of Contents
Add a table of contents based on heading styles.
| Parameter | Type | Description |
|---|---|---|
filename * | string | |
max_level | integer | |
title | string |
merge_documents Merge Documents
Merge multiple Word documents into a single target document.
| Parameter | Type | Description |
|---|---|---|
source_filenames * | array | |
target_filename * | string | |
add_page_breaks | boolean |
add_restricted_editing Add Restricted Editing
Add restricted editing to a document, allowing editing only in specified sections.
| Parameter | Type | Description |
|---|---|---|
editable_sections * | array | |
filename * | string | |
password * | string |
add_digital_signature Add Digital Signature
Add a digital signature to a Word document.
| Parameter | Type | Description |
|---|---|---|
filename * | string | |
signer_name * | string | |
reason | string |
verify_document Verify Document
Verify document protection and/or digital signature.
| Parameter | Type | Description |
|---|---|---|
filename * | string | |
password | string |