Create a document
create_docCreate a document with a Markdown body or a self-contained HTML page. File it under a collection, attach it to a project, or nest it under a parent document. A document lives in a collection or in a project, never both.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| kind | No | markdown for a normal doc, html for a self-contained HTML page. | |
| title | Yes | Document title. | |
| parent | No | Parent document, making this a nested page. It inherits the parent home. | |
| content | No | Markdown body, or the full HTML page when kind is html. | |
| project | No | Project name, slug or id. | |
| collection | No | Collection to file the document under. Detaches it from any project. | |
| visibility | No | Who can reach the document. "workspace" is in-app, "members" is a signed-in published URL, "link" and "public" are on the web. |