Create blog post or email
create_docCreate a blog post or email newsletter from Markdown that you write. The tool converts the Markdown (headings, lists, links, emphasis) into a Blaze document, saves it in the workspace, and creates a matching draft post. Nothing is published.
Inputs: workspace_key, title, markdown; optional type ("blog" or "email"; default "blog"), project_id (default: the user's default project), and post_at (the draft's intended publish time, ISO 8601).
Returns the document id, an editor URL, and the draft post's id. To schedule the draft or change its date or caption, call edit_scheduled_post with that id. Publishing needs a connected blog or email integration in the workspace.
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": {
"workspace_key": "<workspace_key>",
"title": "<title>",
"markdown": "<markdown>"
},
"name": "create_doc"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| type | No | Document type: 'blog' post or 'email'/newsletter. Defaults to 'blog'. | |
| title | Yes | The document title. | |
| post_at | No | Optional ISO 8601 datetime for the draft scheduled post's intended publish time. | |
| markdown | Yes | The document body as Markdown. Converted to the editor rich-text document. | |
| project_id | No | Optional project (in this workspace) to file the doc in. Defaults to your default project. | |
| workspace_key | Yes | Key of the workspace to act in. Call list_workspaces to see the workspaces you have access to and their keys. |