create_doc
Create a document in a project and return its metadata and version so you can edit it immediately without a separate read.
Instructions
Create a document in a project. Returns its metadata and version — the version is what update_doc takes as base_version, so a create followed by an edit needs no read in between. The body you sent is not echoed back. slug is ONE path segment and must not contain '/' (the request is refused with 400): a document in a folder is created with parent_id set to the parent's id, and is then reachable as /.
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": {
"project_id": "<project_id>",
"title": "<title>"
},
"name": "create_doc"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| body | No | Markdown body. | |
| slug | No | One URL segment, derived from the title if omitted. '/' is not allowed (400) — nest with parent_id instead. | |
| title | Yes | Document title. | |
| position | No | Sort position among siblings. | |
| parent_id | No | Parent document UUID, to nest this one under it. | |
| project_id | Yes | Project UUID. |