publish_draft
Commit pending draft edits on a branch as a new revision, serving immediately if live. Waits for security check and reports outcome; can discard draft instead.
Instructions
Publish a branch's pending draft edits, committing them as a new revision. If the branch is live, the changes serve immediately; otherwise use make_branch_live to serve them. Publishing runs an async security check on the prompt; this tool waits for it and reports the real outcome — if the check is still running after ~60s the changes aren't committed yet (they commit automatically once it passes), and if it fails the draft stays open so you can fix the prompt and publish again. Can also discard the pending draft instead of publishing.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| label | No | Revision label (max 200 chars, e.g. 'Changed voice to yuvika') | |
| action | No | Whether to publish the draft (commit it) or discard it | publish |
| agent_id | Yes | The agent ID | |
| branch_id | No | Branch to publish (from list_branches). Omit to use the live branch; if the agent has multiple branches you'll be asked to pick one. |