publish_draft
Publish a draft as a new version and activate it live after a security check; discard if needed.
Instructions
Publish a draft as a new version and (by default) activate it to make it live. Publishing triggers an async security check on the prompt; this tool waits for it to pass before activating and reports the real outcome — if the check is still pending after ~60s the version is published but NOT live yet (use activate_version once it passes), and if it fails the version cannot be activated until the prompt is fixed. Can also discard a draft instead of publishing.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| label | No | Version label (max 200 chars, e.g. 'Changed voice to yuvika') | |
| action | No | Whether to publish the draft (make it live) or discard it | publish |
| activate | No | Activate the published version once its security check passes (default true). Pass false to publish only — activate later with activate_version. | |
| agent_id | Yes | The agent ID | |
| draft_id | Yes | The draft ID to publish (returned by update_agent_config, update_agent_prompt, add_agent_tool, set_pre_call_api, etc.) | |
| description | No | Changelog description (max 2000 chars) |