adeu

v1.7.1
ai.adeu/adeu Checked 7 hours ago Published 6 months ago

Automated 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…

ParameterTypeDescription
file_path *stringAbsolute path to the DOCX file.
clean_viewbooleanIf False (default), returns the 'Raw' text with inline CriticMarkup. If True, returns 'Accepted' text.
modestring'full' returns body content. 'outline' returns a structural heading map. 'appendix' returns defined terms.
outline_max_levelnumberFor mode='outline' only: cap on heading depth.
outline_verbosebooleanFor mode='outline' only: includes metadata.
pagenumberPage 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…

ParameterTypeDescription
author_name *stringName to appear in Track Changes (e.g., 'Reviewer AI').
changes *arrayList of changes to apply. Each change must specify 'type'.
original_docx_path *stringAbsolute path to the source file.
output_pathstringOptional 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.

ParameterTypeDescription
docx_path *stringAbsolute path to the DOCX file.
output_pathstringOptional 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.

ParameterTypeDescription
modified_path *stringAbsolute path to the modified DOCX file.
original_path *stringAbsolute path to the baseline DOCX file.
compare_cleanbooleanIf 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.

ParameterTypeDescription
file_path *stringAbsolute path to the DOCX file.
accept_allbooleanIf true, auto-accepts all unresolved track changes before finalizing.
authorstringReplace all remaining markup authorship with this name.
export_pdfbooleanIgnored in this environment.
output_pathstringOptional output path.
passwordstringIgnored in this environment.
protection_modestringNative OOXML document locking. encrypt falls back to read_only in this environment.
sanitize_modestringfull 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.

ParameterTypeDescription
attachment_namestring
days_agonumber
email_idstring
folderstring
has_attachmentsboolean
is_unreadboolean
limitnumber
offsetnumber
senderstring
subjectstring
working_directorystring

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.

ParameterTypeDescription
body_markdown *string
attachment_pathsarray
reply_to_email_idstring
subjectstring
to_recipientsarray