promote_draft
Activate draft pipeline configurations by promoting them to live status, replacing current settings while preserving a restore point for previous configurations.
Instructions
Promote the draft snapshot to live. This overwrites the live pipeline config with the draft contents, then deletes the draft snapshot. A pre-promote snapshot is saved automatically so the previous live config can be restored if needed.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| workflowId | Yes | The workflow ID |
Implementation Reference
- src/tools/workflows.ts:282-300 (handler)The `promote_draft` tool is registered here. It accepts a `workflowId` and invokes `client.promoteDraft(workflowId)` to perform the promotion.
server.tool( 'promote_draft', `Promote the draft snapshot to live. This overwrites the live pipeline config with the draft contents, then deletes the draft snapshot. A pre-promote snapshot is saved automatically so the previous live config can be restored if needed.`, { workflowId: z.string().describe('The workflow ID'), }, async ({ workflowId }, extra) => { const client = clientFactory(extra); const result = await client.promoteDraft(workflowId); return { content: [{ type: 'text' as const, text: JSON.stringify(result, null, 2), }], }; } );