create_document
Create a long-form document with rich text content by providing a title and Quill Delta JSON. Use for essays, articles, and any rich-text documents.
Instructions
Create a long-form document
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| form | Yes | Document form type enum. Use 1 for LONG_FORM (Quill-editor-backed documents — the standard for essays, articles, and any rich-text content). 0 = SHORT_FORM (AI templates, not used by these skills). | |
| title | Yes | Document title shown in the editor and the document list. For AI-writer skills, use the essay/article title from the originating show_article tool call. | |
| parent | No | Optional parent document id for creating a sub-document. Not used by AI-writer skills in v1. | |
| content | Yes | Quill Delta JSON representing the document body. Contains an `ops` array of operations. Each op is a dict with `insert` (string or embed object) and optional `attributes` (formatting like bold, italic, header, list, link, code-block, blockquote). For markdown-sourced content, call `markdown_to_quill_delta` to produce a compliant Delta before passing to this field. | |
| payload | No | Optional document metadata. Can be left empty ({}). Supported fields: description, tone, keywords, voice_id, output. Used for AI template context — not required for skill-generated content. |