create_document
Create a document from raw markdown and ProseMirror data. This escape hatch bypasses templates but is not idempotent; check existing documents after a timeout before retrying.
Instructions
Create a document from a raw payload (escape hatch — prefer create_document_from_template). serialized must be an object: {title, body (markdown), serialized (JSON-encoded ProseMirror doc), fields (JSON-encoded field-values map)}. NOT idempotent: if the call times out, the document may still have been created — list_documents before retrying.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| raw | Yes | Document body as markdown | |
| meta | No | Optional document metadata | |
| vendor_id | No | Optional vendor id (UUID) | |
| serialized | Yes | Serialized content: {title, body, serialized: '<ProseMirror JSON string>', fields: '<field-values JSON string>'} | |
| content_type_id | Yes | Content type id (UUID) |