Create draft document
create_documentCreates a draft Markdown document in Content Studio, from Markdown text or by converting a web page (source_url) to Markdown. Drafts are not public until published.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "create_document"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| lang | No | Language code, e.g. en, pl. Defaults to the site language. | |
| site | No | Site domain, e.g. example.com. Optional when the account has one site. | |
| slug | No | Defaults to a slug of the title | |
| title | No | ||
| markdown | No | Markdown body (YAML frontmatter allowed) | |
| source_url | No | Page to convert to Markdown instead of markdown | |
| description | No |