---
name: writer-documents
description: "Create, open or edit Writer documents: ODT default; DOCX for Word compatibility."
version: "1.1.0"
author: "Agent Zero Core Team"
tags: ["writer", "odt", "opendocument", "word", "docx", "documents", "reports", "memos", "contracts"]
triggers:
  - "Writer"
  - "ODT"
  - "odt"
  - "OpenDocument Text"
  - "Word"
  - "DOCX"
  - "docx"
  - "Microsoft Word"
  - "LibreOffice Writer"
  - "Word document"
allowed_tools:
  - office_artifact
---

# Writer Documents

Use ODT for LibreOffice Writer documents. Use DOCX only when the user explicitly asks for Word/DOCX/OOXML compatibility, provides an existing `.docx`, or needs that compatibility format. For ordinary writing with no binary requirement, use Markdown instead.

The document UI and Desktop are user-owned. Creating or editing an ODT or DOCX must save the file, but must not open a document modal or Desktop surface automatically. Use Desktop/Writer only for explicit GUI requests, visual layout polish, or final visual confirmation. Do not write faux UI action labels such as "Open document" or "Download file", and do not add a note saying the canvas was not opened automatically unless the user explicitly asks about UI behavior.

## Workflow

Create:

```json
{
  "tool_name": "office_artifact",
  "tool_args": {
    "action": "create",
    "kind": "document",
    "title": "Board Memo",
    "format": "odt",
    "content": "Memo body text."
  }
}
```

Edit:

1. Use the `read` action with `file_id` or `path` before content-sensitive edits.
2. Use the `edit` action for deterministic saved changes: `set_text`, `append_text`, `prepend_text`, `replace_text`, or `delete_text`.
3. Use the Desktop only when the user asks to see Writer or when layout cannot be handled reliably through structured edits.

Practical rules:

- Keep Writer content clean and structured. Use headings and paragraphs; avoid over-formatting unless requested.
- Treat DOCX as a compatibility export/request, not the default Writer format.
- Do not say the document is open. Say it was created or updated, and rely on the Open in Desktop action for user-controlled viewing.


---
Source attribution: agent0ai
Original project: https://github.com/agent0ai/agent-zero
License: MIT
License information: https://opensource.org/license/mit
Original upstream instructions; downloaded from Dave AI.

## Upstream license notice

MIT License

Copyright (c) 2026 Gabriel Moreira

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.



# Dave AI resource metadata

Creator / publisher: agent0ai
Original project: https://github.com/agent0ai/agent-zero
Attribution basis: Upstream repository explicitly recorded in package mirror path

Fields of work: Content & Media, Marketing
Roles: Content Marketer, Copywriter, Technical Writer
Specialties: Word Documents, Frontend
Tools: Document_Artifact
Country applicability: Country not specified
Classification basis: Source catalog labels
Instruction SHA-256: e89459dc6dfc83df9a86fb5b8cb6bab9ca05239d300fb5771596c0071665ba4c
