article_publish
Publishes an article by promoting autosaved content to published state. Supply all autosaved fields for a single atomic publish, or omit them for a fallback fetch-and-publish.
Instructions
Publish an article. Voog only copies autosaved_* → published fields when publishing:true is sent in the SAME PUT as the autosaved values — that's why this needs a separate tool rather than a publish flag on article_update.
Two modes:
FAST PATH (recommended) — pass ALL THREE autosaved_title, autosaved_body, autosaved_excerpt args. Tool issues a single PUT atomically; no race window.
FALLBACK — pass none of them. Tool does GET to fetch current autosaved_* values then PUTs them back with publishing:true. There is a small race window between the GET and the PUT — if the article is edited concurrently, the publish may capture a stale snapshot.
Mixed (some autosaved_* provided, some not) is rejected — the caller must be explicit.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| site | Yes | ||
| article_id | Yes | ||
| autosaved_title | No | Optional. If all three autosaved_* args are supplied, the tool skips the GET and PUTs directly (no race window). If none are supplied, the tool falls back to GET+PUT. | |
| autosaved_body | No | Optional. See autosaved_title — must be supplied together with the other two autosaved_* args, or omitted entirely. | |
| autosaved_excerpt | No | Optional. See autosaved_title — must be supplied together with the other two autosaved_* args, or omitted entirely. |