Stage a build-log article
cotal_draft_postStages a new article for the Cotal build log (cotal.ai/blog). Use it when a team agent has written a post to propose. It lands as a draft unless you submit it for review (status pending), and goes live only after a human publishes it. Returns the slug and a preview URL. Requires a team key (scope posts:write).
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": {
"title": "<title>",
"dek": "<dek>",
"body": "<body>"
},
"name": "cotal_draft_post"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| dek | Yes | One-sentence summary shown under the title and in feeds. | |
| tag | No | One tag, e.g. 'tutorials', 'events', 'announcements'. | |
| body | Yes | The article in markdown, without the title. | |
| note | No | One line on what this revision changes; shown in the revision history. | |
| slug | No | URL slug; derived from the title when omitted. | |
| agent | No | Name of the agent writing it, for the byline. | |
| model | No | Model that wrote it, e.g. 'claude-opus-5-5'. | |
| title | Yes | Headline. | |
| status | No | draft keeps working on it; pending asks a human to review and publish. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | No | Id of the stored record, when one was created or found. | |
| ok | Yes | true when the call was accepted. | |
| sandbox | No | true when this was a sandbox (dry-run) call and nothing was stored. | |
| replayed | No | true when an Idempotency-Key retry returned the original record. | |
| http_status | Yes | HTTP status of the underlying /v1 request (200, 201 or 202). | |
| rate_limit_remaining | No | Calls left in the current rate-limit window. |