Create Document
create_documentCreate a new text document or folder in your Scrivener binder. Set title, initial content, and parent folder to organize your project structure.
Instructions
Create a new text document or folder in the binder and return its new id. Optionally set the initial body content and the parent folder; if no parent is given the item is added at the top level. Each call creates a distinct item (not idempotent). Use write_document to change content afterward. Requires an open project.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| title | Yes | Title for the new document or folder. Truncated to 255 characters. | |
| content | No | Document body as plain text. May be empty. | |
| parentId | No | UUID of a binder folder, as returned by get_structure. | |
| documentType | No | Whether to create a "Text" document (default) or a "Folder". |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| documentId | Yes | Scrivener UUID of the newly created document or folder. |