Back to Agent Zero

Writer Documents

plugins/_office/skills/word-documents/SKILL.md

1.131.4 KB
Original Source

Writer Documents

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

The canvas is user-owned UI. Creating or editing an ODT or DOCX must save the file and return action buttons, but must not open the canvas automatically. Use Desktop/Writer only for explicit GUI requests, visual layout polish, or final visual confirmation.

Workflow

Create:

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

Edit:

  1. Use document_artifact:read with file_id or path before content-sensitive edits.
  2. Use document_artifact:edit 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 canvas action for user-controlled viewing.