Create document
Create a new .docx (or .doc, .rtf or .odt) file on disk, empty or as a copy of a template document, optionally password-protected, and open it as a named session.
Command in the Word toolkit · id ooa.word/create_document · 7 inputs (1 required), no outputs
Inputs
| Input | Type | Required | Default | What it is |
|---|---|---|---|---|
| Path | File | Yes | Path of the new document. | |
| Overwrite | Boolean | No | false | Replace a file that already exists at the path. |
| Session | String | No | word | Session name. |
| Password | Credential | No | Encrypt the new file with this password; later saves keep it. | |
| Template | File | No | Existing .docx whose content and styles the new document starts from; empty document when empty. | |
| Edit password | Credential | No | Restrict editing with this password: Word opens the document read-only until the password is given (Review > Restrict Editing > Stop Protection). | |
| Share | Boolean | No | false | Agents this one runs may use it. |