Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Capabilities
Features and capabilities supported by this server
| Capability | Details |
|---|---|
| tools | {} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| read_file | Read document content (DOCX or Google Doc). Output is token-limited (~14k tokens) by default with pagination metadata (has_more, next_offset). Use offset/limit to paginate. |
| grep | Search paragraphs with regex. Use file_path for session-based search, file_paths for stateless multi-file search, or google_doc_id for Google Docs. |
| init_plan | Initialize revision-bound context metadata for coordinated multi-agent planning. |
| merge_plans | Deterministically merge multiple sub-agent plans and detect hard conflicts before apply. |
| apply_plan | Validate and apply a batch of edit steps (replace_text, insert_paragraph) to a document in one call. Validates all steps first; applies only if all pass. Accepts inline steps or a plan_file_path. Compatible with merge_plans output. |
| replace_text | Replace text in a paragraph by bk* id, preserving formatting. Supports DOCX and Google Docs. |
| insert_paragraph | Insert a paragraph before/after an anchor paragraph by bk* id. Supports DOCX and Google Docs. |
| save | Save document. For DOCX: saves clean and/or tracked changes output. For Google Docs: checkpoint (default) returns revisionId, or snapshot exports as DOCX. |
| format_layout | Apply layout controls (paragraph spacing, table row height, cell padding). Google Docs supports paragraph spacing only. |
| accept_changes | Accept all tracked changes in the document body, producing a clean document with no revision markup. Returns acceptance stats. |
| has_tracked_changes | Check whether the document body contains tracked-change markers (insertions, deletions, moves, and property-change records). Read-only. |
| get_file_status | Get file/session metadata including edit count, normalization stats, and cache info. Supports DOCX and Google Docs. |
| close_file | Close an open file session, or close all sessions with explicit confirmation. Supports DOCX and Google Docs. |
| add_comment | Add a comment or threaded reply to a document. Provide target_paragraph_id + anchor_text for root comments, or parent_comment_id for replies. |
| get_comments | Get all comments from the document with IDs, authors, dates, text, and anchored paragraph IDs. Includes threaded replies. Read-only. |
| delete_comment | Delete a comment and all its threaded replies from the document. Cascade-deletes all descendants. |
| compare_documents | Compare two DOCX documents and produce a tracked-changes output document. Provide original_file_path + revised_file_path for standalone comparison, or file_path to compare session edits against the original. |
| get_footnotes | Get all footnotes from the document with IDs, display numbers, text, and anchored paragraph IDs. Read-only. |
| add_footnote | Add a footnote anchored to a paragraph. Optionally position the reference after specific text using after_text. Note: [^N] markers in read_file output are display-only and not part of the editable text used by replace_text. |
| update_footnote | Update the text content of an existing footnote. |
| delete_footnote | Delete a footnote and its reference from the document. |
| clear_formatting | Clear specific run-level formatting (bold, italic, underline, highlight, color, font) from paragraphs. |
| extract_revisions | Extract tracked changes as structured JSON with before/after text per paragraph, revision details, and comments. Supports pagination via offset and limit. Read-only - does not modify the document. |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
No prompts | |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
No resources | |