publish_draft
Publish a draft to make agent configuration changes live, or discard a draft to revert changes without activating them.
Instructions
Publish a draft as a new version and activate it, making changes live. Use after update_agent_config or update_agent_prompt creates a draft on a versioned agent. Can also discard a draft instead of publishing.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| agent_id | Yes | The agent ID | |
| draft_id | Yes | The draft ID to publish (returned by update_agent_config or update_agent_prompt) | |
| action | No | Whether to publish the draft (make it live) or discard it | publish |
| label | No | Version label (max 200 chars, e.g. 'Changed voice to yuvika') | |
| description | No | Changelog description (max 2000 chars) |