Create Document
create_documentCreate a new text document or folder within a Scrivener project binder. Set initial content and parent folder, or add at the top level.
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.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"title": "<title>"
},
"name": "create_document"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| force | No | Write even if the project appears open in Scrivener. Default false, which refuses the write to protect against your changes being overwritten by Scrivener on save. | |
| 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. |