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.
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": {
"content_type_id": "<content_type_id>",
"raw": "<raw>",
"serialized": "<serialized>"
},
"name": "create_document"
}
}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) |