CREATE_DOCX
Creates a new styled .docx from Markdown-like text. Supports # headings (1-6), **bold**, *italic*, - unordered bullets, 1. numbered lists, > blockquotes, --- page breaks, and |col|col| tables.
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
path | string | yes | Absolute path to the new .docx file |
content | string | yes | Markdown-formatted text content. |
title | string | — | Optional document title (added as Title style at top) |
font_name | string | — | Optional font name (default: Calibri) |
font_size | integer | — | Optional base font size in points (default: 11) |
How to use it
You normally trigger this by describing what you want in chat — the agent selects CREATE_DOCX automatically. For example:
Try saying
“create a docx handler document”
In a workflow
As a step in a multi-step workflow DAG:
json
{
"id": "s1",
"agent": "docx_handler",
"action": "CREATE_DOCX",
"args": {
"path": "/Users/me/Documents/file.txt",
"content": "…"
},
"depends_on": [],
"outputs": []
}Direct call
For scripting, call it directly via POST /execute_tool. Every tool returns { success, message, data }.
bash
curl -X POST http://127.0.0.1:8000/execute_tool \
-H "Content-Type: application/json" \
-d '{"tool_name":"CREATE_DOCX","args":{"path":"/Users/me/Documents/file.txt","content":"…"}}'Part of the docx_handler plugin. Browse the full Plugin & Tool Catalog or the relevant feature guide.