Codumentor logo Codumentor

Document Editor Plugin

Lets the agent open, edit, and save Microsoft Word documents (.docx) in the conversation. Ask it to work on a document; editing tools appear once a file is open, and disappear when it is closed. Saved files show a download card in the transcript (served by the File Links plugin).

The agent can open a document from a configured repo or from a Client Filesystem folder attached to the conversation. Documents opened from an attached folder are written back there on save.

Configuration

plugins:
  - module: codumentor.plugins.doc_editor
    class: DocEditorPlugin
    args:
      enabled: true
      target_agents: "main"  # "main", "subagent", or "all" (default: "main")

Keep File Links enabled so download cards in the transcript resolve. Without it, save cards still render but their links 404.

Parameters

KeyTypeDefaultDescription
enabledbooltrueMaster switch.
target_agentsstring"main"Which agents get the tools: "main", "subagent", or "all". Any other value is treated as "all".

What the agent can do

doc_open is always available. After a document is open, the editing tools below appear; doc_close removes them.

The agent can open an existing .docx, copy it to a new path before editing, or create a blank document (create_new). Search returns at most 50 matches.

ToolWhenDescription
doc_openalwaysOpen or create a .docx (repo or attached folder)
doc_read_structureopenParagraph/heading outline
doc_read_sectionopenContent of a section
doc_searchopenSearch for text
doc_replace_textopenReplace text
doc_insert_paragraphopenInsert a paragraph
doc_delete_paragraphopenDelete a paragraph
doc_list_tablesopenList tables
doc_edit_table_cellopenEdit a table cell
doc_read_headers_footersopenRead headers and footers
doc_set_propertyopenSet properties (title, author, …)
doc_pythonopenAdvanced edits via python-docx
doc_saveopenSave; transcript shows a download card
doc_closeopenClose the document

See also