adeu
v1.7.1Automated DOCX Redlining Engine
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
read_docx
Reads a DOCX file. Returns text with inline CriticMarkup for Tracked Changes and Comments: {++inserted++}, {--deleted--}, {==highlighted==}{>>comment<<}. Set clean_view=True for the finalized 'Accepted' text without markup. Modes: - 'full' (default): paginated body content. Use page=N to navigate. - 'outline': heading map only — start here for large docs to plan targeted reads. Defaults to L1-L2 headings; pass outline_max_level=3-6 to see deeper structure. - 'appendix': defined terms, anchors, and cross-reference targets. Consult before editing legal/technical docs to avoid breaking referen…
| Parameter | Type | Description |
|---|---|---|
file_path * | string | Absolute path to the DOCX file. |
clean_view | boolean | If False (default), returns the 'Raw' text with inline CriticMarkup. If True, returns 'Accepted' text. |
mode | string | 'full' returns body content. 'outline' returns a structural heading map. 'appendix' returns defined terms. |
outline_max_level | number | For mode='outline' only: cap on heading depth. |
outline_verbose | boolean | For mode='outline' only: includes metadata. |
page | number | Page number (1-indexed) for mode='full'. Defaults to 1. |
process_document_batch
Applies a batch of edits and review actions to a DOCX. All changes evaluate against the ORIGINAL document state — do not chain dependent edits within one batch (e.g. rename X to Y, then modify Y). Apply the rename first, then send a second batch. Each item in `changes` must specify a `type`: 1. 'modify': Search-and-replace. `target_text` must uniquely match — include surrounding context if the phrase is ambiguous. `new_text` supports Markdown: '# Heading 1' through '###### Heading 6', '**bold**', '_italic_', and '\n\n' to split into multiple paragraphs. Empty `new_text` deletes. Do NOT w…
| Parameter | Type | Description |
|---|---|---|
author_name * | string | Name to appear in Track Changes (e.g., 'Reviewer AI'). |
changes * | array | List of changes to apply. Each change must specify 'type'. |
original_docx_path * | string | Absolute path to the source file. |
output_path | string | Optional output path. |
accept_all_changes
Accepts all tracked changes and removes all comments in a single operation, producing a finalized clean document. Use this when a document review is entirely complete and you want to clear all redlines.
| Parameter | Type | Description |
|---|---|---|
docx_path * | string | Absolute path to the DOCX file. |
output_path | string | Optional output path. |
diff_docx_files
Compares two DOCX files and returns a unified diff of their text content. Useful for analyzing differences between versions before editing.
| Parameter | Type | Description |
|---|---|---|
modified_path * | string | Absolute path to the modified DOCX file. |
original_path * | string | Absolute path to the baseline DOCX file. |
compare_clean | boolean | If True, compares 'Accepted' state. If False, compares raw text. |
finalize_document
Prepares a document for external distribution or e-signature. This tool combines metadata sanitization, document locking (protection), and markup resolution into a single step. NOTE: PDF export and AES encryption are disabled in this environment.
| Parameter | Type | Description |
|---|---|---|
file_path * | string | Absolute path to the DOCX file. |
accept_all | boolean | If true, auto-accepts all unresolved track changes before finalizing. |
author | string | Replace all remaining markup authorship with this name. |
export_pdf | boolean | Ignored in this environment. |
output_path | string | Optional output path. |
password | string | Ignored in this environment. |
protection_mode | string | Native OOXML document locking. encrypt falls back to read_only in this environment. |
sanitize_mode | string | full removes all markup, keep-markup redacts metadata but keeps comments/redlines. |
login_to_adeu_cloud
Logs the user into the Adeu Cloud backend. Securely opens a browser window for authentication.
logout_of_adeu_cloud
Logs out of the Adeu Cloud backend by clearing the local API key.
search_and_fetch_emails
Searches the user's live email inbox. By default, searches only the Inbox folder. Returns a list of lightweight previews. Call again with `email_id` to fetch the full body and download attachments.
| Parameter | Type | Description |
|---|---|---|
attachment_name | string | |
days_ago | number | |
email_id | string | |
folder | string | |
has_attachments | boolean | |
is_unread | boolean | |
limit | number | |
offset | number | |
sender | string | |
subject | string | |
working_directory | string |
create_email_draft
Creates an email draft in the user's native draft box. Provide `reply_to_email_id` to reply, or `subject` and `to_recipients` for a new email.
| Parameter | Type | Description |
|---|---|---|
body_markdown * | string | |
attachment_paths | array | |
reply_to_email_id | string | |
subject | string | |
to_recipients | array |