publish
Make an approved draft public by selecting its live control and submitting the form, ensuring content reaches an audience only after human confirmation.
Instructions
Make a draft public — the one action that sends content to an audience.
Kept apart from every other tool so that writing a draft can never publish
it: this asks for PUBLISH, which is single-use and implied by nothing,
and it is the only tool that buys it.
A site splits this across two controls and means neither of them alone.
Measured on KVR: the publish radio (input[name=is_draft][value='0'] on
a news item, input[name=is_live][value='1'] on a product) only arms the
form — the item travels on the form's own Submit. Switching the radio and
stopping would leave the page primed to publish on someone else's next
click, which is worse than not switching it at all. So give both:
selector— the control that carries the item live, fromread_form'sdraftslist.submit— the control that sends the form. Required:read_formreports the candidates insubmitText, and on KVR they are one button (Submiton a news item,Addon a product). This is the request that actually publicises the item, so nothing else in this tool surface may send a form whose publish control is set.
Call this only when a human has approved the exact item. Show them what
will go public and get their answer first; the approval prompt this raises
is the second gate, not the first. Afterwards read_form reads back the
state the page actually reached.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| reason | No | ||
| submit | No | ||
| confirm | No | ||
| selector | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||