Skip to content

:hedgehog: PostHog is the leading platform for building self-driving products. Our developer tools – AI observability, analytics, session replay, flags, experiments, error tracking, logs, and more – capture all the context agents need to diagnose problems, uncover opportunities, and ship fixes. Steer it all from Slack, web, desktop, or the MCP.

fix(workflows): only expose editor-supported action config over MCP (#63546)

Harley Alexanderaef763bee085
diff --git a/products/workflows/backend/api/hog_flow.py b/products/workflows/backend/api/hog_flow.py
index fdd27eda0e5f..6796c0b1469a 100644
--- a/products/workflows/backend/api/hog_flow.py
+++ b/products/workflows/backend/api/hog_flow.py
@@ -158,10 +158,10 @@ class HogFlowActionSerializer(serializers.Serializer):
name = serializers.CharField(max_length=400, help_text="Display name.")
description = serializers.CharField(allow_blank=True, default="", help_text="Optional description.")
on_error = serializers.ChoiceField(
- choices=["continue", "abort", "complete", "branch"],
+ choices=["continue", "abort"],
required=False,
allow_null=True,
- help_text="On failure: continue (skip), abort (stop), complete (mark done), branch (follow error edge).",
+ help_text="On failure: continue (skip the action and proceed) or abort (stop the run).",
)
created_at = serializers.IntegerField(required=False, help_text="Created at (epoch ms). Frontend-managed.")
updated_at = serializers.IntegerField(required=False, help_text="Updated at (epoch ms). Frontend-managed.")
@@ -171,7 +171,7 @@ class HogFlowActionSerializer(serializers.Serializer):
type = serializers.CharField(
max_length=100,
help_text=(
- "trigger | function | function_email | function_sms | function_push | delay | "
+ "trigger | function | function_email | function_sms | delay | "
"conditional_branch | wait_until_condition | wait_until_time_window | random_cohort_branch | exit."
),
)
diff --git a/products/workflows/backend/api/hog_flow_template.py b/products/workflows/backend/api/hog_flow_template.py
index ff48fac8531e..edb5da70a324 100644
--- a/products/workflows/backend/api/hog_flow_template.py
+++ b/products/workflows/backend/api/hog_flow_template.py
@@ -63,7 +63,10 @@ class HogFlowTemplateActionSerializer(serializers.Serializer):
name = serializers.CharField(max_length=400)
description = serializers.CharField(allow_blank=True, default="")
on_error = serializers.ChoiceField(
- choices=["continue", "abort", "complete", "branch"], required=False, allow_null=True
+ choices=["continue", "abort"],
+ required=False,
+ allow_null=True,
+ help_text="On failure: continue (skip the action and proceed) or abort (stop the run).",
)
created_at = serializers.IntegerField(required=False)
updated_at = serializers.IntegerField(required=False)
diff --git a/products/workflows/frontend/generated/api.schemas.ts b/products/workflows/frontend/generated/api.schemas.ts
index 2a6962d8d276..fe10a3ca058f 100644
--- a/products/workflows/frontend/generated/api.schemas.ts
+++ b/products/workflows/frontend/generated/api.schemas.ts
@@ -57,16 +57,12 @@ export const ExitConditionEnumApi = {
/**
* * `continue` - continue
* * `abort` - abort
- * * `complete` - complete
- * * `branch` - branch
*/
export type OnErrorEnumApi = (typeof OnErrorEnumApi)[keyof typeof OnErrorEnumApi]
export const OnErrorEnumApi = {
Continue: 'continue',
Abort: 'abort',
- Complete: 'complete',
- Branch: 'branch',
} as const
/**
@@ -112,6 +108,10 @@ export interface HogFlowTemplateActionApi {
/** @maxLength 400 */
name: string
description?: string
+ /** On failure: continue (skip the action and proceed) or abort (stop the run).
+ *
+ * * `continue` - continue
+ * * `abort` - abort */
on_error?: OnErrorEnumApi | null
created_at?: number
updated_at?: number
@@ -358,12 +358,10 @@ export interface HogFlowActionApi {
name: string
/** Optional description. */
description?: string
- /** On failure: continue (skip), abort (stop), complete (mark done), branch (follow error edge).
+ /** On failure: continue (skip the action and proceed) or abort (stop the run).
*
* * `continue` - continue
- * * `abort` - abort
- * * `complete` - complete
- * * `branch` - branch */
+ * * `abort` - abort */
on_error?: OnErrorEnumApi | null
/** Created at (epoch ms). Frontend-managed. */
created_at?: number
@@ -372,7 +370,7 @@ export interface HogFlowActionApi {
/** Property filters gating this action. */
filters?: HogFunctionFiltersApi | null
/**
- * trigger | function | function_email | function_sms | function_push | delay | conditional_branch | wait_until_condition | wait_until_time_window | random_cohort_branch | exit.
+ * trigger | function | function_email | function_sms | delay | conditional_branch | wait_until_condition | wait_until_time_window | random_cohort_branch | exit.
* @maxLength 100
*/
type: string
diff --git a/products/workflows/frontend/generated/api.zod.ts b/products/workflows/frontend/generated/api.zod.ts
index 53b75b7f040e..1267d50b1525 100644
--- a/products/workflows/frontend/generated/api.zod.ts
+++ b/products/workflows/frontend/generated/api.zod.ts
@@ -80,14 +80,13 @@ export const HogFlowTemplatesCreateBody = /* @__PURE__ */ zod
description: zod.string().default(hogFlowTemplatesCreateBodyActionsItemDescriptionDefault),
on_error: zod
.union([
- zod
- .enum(['continue', 'abort', 'complete', 'branch'])
- .describe(
- '\* `continue` - continue\n\* `abort` - abort\n\* `complete` - complete\n\* `branch` - branch'
- ),
+ zod.enum(['continue', 'abort']).describe('\* `continue` - continue\n\* `abort` - abort'),
zod.null(),
])
- .optional(),
+ .optional()
+ .describe(
+ 'On failure: continue (skip the action and proceed) or abort (stop the run).\n\n\* `continue` - continue\n\* `abort` - abort'
+ ),
created_at: zod.number().optional(),
updated_at: zod.number().optional(),
filters: zod
@@ -203,14 +202,13 @@ export const HogFlowTemplatesUpdateBody = /* @__PURE__ */ zod
description: zod.string().default(hogFlowTemplatesUpdateBodyActionsItemDescriptionDefault),
on_error: zod
.union([
- zod
- .enum(['continue', 'abort', 'complete', 'branch'])
- .describe(
- '\* `continue` - continue\n\* `abort` - abort\n\* `complete` - complete\n\* `branch` - branch'
- ),
+ zod.enum(['continue', 'abort']).describe('\* `continue` - continue\n\* `abort` - abort'),
zod.null(),
])
- .optional(),
+ .optional()
+ .describe(
+ 'On failure: continue (skip the action and proceed) or abort (stop the run).\n\n\* `continue` - continue\n\* `abort` - abort'
+ ),
created_at: zod.number().optional(),
updated_at: zod.number().optional(),
filters: zod
@@ -331,13 +329,14 @@ export const HogFlowTemplatesPartialUpdateBody = /* @__PURE__ */ zod
on_error: zod
.union([
zod
- .enum(['continue', 'abort', 'complete', 'branch'])
- .describe(
- '\* `continue` - continue\n\* `abort` - abort\n\* `complete` - complete\n\* `branch` - branch'
- ),
+ .enum(['continue', 'abort'])
+ .describe('\* `continue` - continue\n\* `abort` - abort'),
zod.null(),
])
- .optional(),
+ .optional()
+ .describe(
+ 'On failure: continue (skip the action and proceed) or abort (stop the run).\n\n\* `continue` - continue\n\* `abort` - abort'
+ ),
created_at: zod.number().optional(),
updated_at: zod.number().optional(),
filters: zod
@@ -487,16 +486,12 @@ export const HogFlowsCreateBody = /* @__PURE__ */ zod.object({
.describe('Optional description.'),
on_error: zod
.union([
- zod
- .enum(['continue', 'abort', 'complete', 'branch'])
- .describe(
- '\* `continue` - continue\n\* `abort` - abort\n\* `complete` - complete\n\* `branch` - branch'
- ),
+ zod.enum(['continue', 'abort']).describe('\* `continue` - continue\n\* `abort` - abort'),
zod.null(),
])
.optional()
.describe(
- 'On failure: continue (skip), abort (stop), complete (mark done), branch (follow error edge).\n\n\* `continue` - continue\n\* `abort` - abort\n\* `complete` - complete\n\* `branch` - branch'
+ 'On failure: continue (skip the action and proceed) or abort (stop the run).\n\n\* `continue` - continue\n\* `abort` - abort'
),
created_at: zod.number().optional().describe('Created at (epoch ms). Frontend-managed.'),
updated_at: zod.number().optional().describe('Updated at (epoch ms). Frontend-managed.'),
@@ -526,7 +521,7 @@ export const HogFlowsCreateBody = /* @__PURE__ */ zod.object({
.string()
.max(hogFlowsCreateBodyActionsItemTypeMax)
.describe(
- 'trigger | function | function_email | function_sms | function_push | delay | conditional_branch | wait_until_condition | wait_until_time_window | random_cohort_branch | exit.'
+ 'trigger | function | function_email | function_sms | delay | conditional_branch | wait_until_condition | wait_until_time_window | random_cohort_branch | exit.'
),
config: zod
.unknown()
@@ -652,16 +647,12 @@ export const HogFlowsUpdateBody = /* @__PURE__ */ zod.object({
.describe('Optional description.'),
on_error: zod
.union([
- zod
- .enum(['continue', 'abort', 'complete', 'branch'])
- .describe(
- '\* `continue` - continue\n\* `abort` - abort\n\* `complete` - complete\n\* `branch` - branch'
- ),
+ zod.enum(['continue', 'abort']).describe('\* `continue` - continue\n\* `abort` - abort'),
zod.null(),
])
.optional()
.describe(
- 'On failure: continue (skip), abort (stop), complete (mark done), branch (follow error edge).\n\n\* `continue` - continue\n\* `abort` - abort\n\* `complete` - complete\n\* `branch` - branch'
+ 'On failure: continue (skip the action and proceed) or abort (stop the run).\n\n\* `continue` - continue\n\* `abort` - abort'
),
created_at: zod.number().optional().describe('Created at (epoch ms). Frontend-managed.'),
updated_at: zod.number().optional().describe('Updated at (epoch ms). Frontend-managed.'),
@@ -691,7 +682,7 @@ export const HogFlowsUpdateBody = /* @__PURE__ */ zod.object({
.string()
.max(hogFlowsUpdateBodyActionsItemTypeMax)
.describe(
- 'trigger | function | function_email | function_sms | function_push | delay | conditional_branch | wait_until_condition | wait_until_time_window | random_cohort_branch | exit.'
+ 'trigger | function | function_email | function_sms | delay | conditional_branch | wait_until_condition | wait_until_time_window | random_cohort_branch | exit.'
),
config: zod
.unknown()
@@ -817,16 +808,12 @@ export const HogFlowsPartialUpdateBody = /* @__PURE__ */ zod.object({
.describe('Optional description.'),
on_error: zod
.union([
- zod
- .enum(['continue', 'abort', 'complete', 'branch'])
- .describe(
- '\* `continue` - continue\n\* `abort` - abort\n\* `complete` - complete\n\* `branch` - branch'
- ),
+ zod.enum(['continue', 'abort']).describe('\* `continue` - continue\n\* `abort` - abort'),
zod.null(),
])
.optional()
.describe(
- 'On failure: continue (skip), abort (stop), complete (mark done), branch (follow error edge).\n\n\* `continue` - continue\n\* `abort` - abort\n\* `complete` - complete\n\* `branch` - branch'
+ 'On failure: continue (skip the action and proceed) or abort (stop the run).\n\n\* `continue` - continue\n\* `abort` - abort'
),
created_at: zod.number().optional().describe('Created at (epoch ms). Frontend-managed.'),
updated_at: zod.number().optional().describe('Updated at (epoch ms). Frontend-managed.'),
@@ -856,7 +843,7 @@ export const HogFlowsPartialUpdateBody = /* @__PURE__ */ zod.object({
.string()
.max(hogFlowsPartialUpdateBodyActionsItemTypeMax)
.describe(
- 'trigger | function | function_email | function_sms | function_push | delay | conditional_branch | wait_until_condition | wait_until_time_window | random_cohort_branch | exit.'
+ 'trigger | function | function_email | function_sms | delay | conditional_branch | wait_until_condition | wait_until_time_window | random_cohort_branch | exit.'
),
config: zod
.unknown()
@@ -1070,15 +1057,13 @@ export const HogFlowsInvocationsCreateBody = /* @__PURE__ */ zod.object({
on_error: zod
.union([
zod
- .enum(['continue', 'abort', 'complete', 'branch'])
- .describe(
- '\* `continue` - continue\n\* `abort` - abort\n\* `complete` - complete\n\* `branch` - branch'
- ),
+ .enum(['continue', 'abort'])
+ .describe('\* `continue` - continue\n\* `abort` - abort'),
zod.null(),
])
.optional()
.describe(
- 'On failure: continue (skip), abort (stop), complete (mark done), branch (follow error edge).\n\n\* `continue` - continue\n\* `abort` - abort\n\* `complete` - complete\n\* `branch` - branch'
+ 'On failure: continue (skip the action and proceed) or abort (stop the run).\n\n\* `continue` - continue\n\* `abort` - abort'
),
created_at: zod.number().optional().describe('Created at (epoch ms). Frontend-managed.'),
updated_at: zod.number().optional().describe('Updated at (epoch ms). Frontend-managed.'),
@@ -1110,7 +1095,7 @@ export const HogFlowsInvocationsCreateBody = /* @__PURE__ */ zod.object({
.string()
.max(hogFlowsInvocationsCreateBodyConfigurationOneActionsItemTypeMax)
.describe(
- 'trigger | function | function_email | function_sms | function_push | delay | conditional_branch | wait_until_condition | wait_until_time_window | random_cohort_branch | exit.'
+ 'trigger | function | function_email | function_sms | delay | conditional_branch | wait_until_condition | wait_until_time_window | random_cohort_branch | exit.'
),
config: zod
.unknown()
@@ -1331,16 +1316,12 @@ export const HogFlowsBulkDeleteCreateBody = /* @__PURE__ */ zod.object({
.describe('Optional description.'),
on_error: zod
.union([
- zod
- .enum(['continue', 'abort', 'complete', 'branch'])
- .describe(
- '\* `continue` - continue\n\* `abort` - abort\n\* `complete` - complete\n\* `branch` - branch'
- ),
+ zod.enum(['continue', 'abort']).describe('\* `continue` - continue\n\* `abort` - abort'),
zod.null(),
])
.optional()
.describe(
- 'On failure: continue (skip), abort (stop), complete (mark done), branch (follow error edge).\n\n\* `continue` - continue\n\* `abort` - abort\n\* `complete` - complete\n\* `branch` - branch'
+ 'On failure: continue (skip the action and proceed) or abort (stop the run).\n\n\* `continue` - continue\n\* `abort` - abort'
),
created_at: zod.number().optional().describe('Created at (epoch ms). Frontend-managed.'),
updated_at: zod.number().optional().describe('Updated at (epoch ms). Frontend-managed.'),
@@ -1370,7 +1351,7 @@ export const HogFlowsBulkDeleteCreateBody = /* @__PURE__ */ zod.object({
.string()
.max(hogFlowsBulkDeleteCreateBodyActionsItemTypeMax)
.describe(
- 'trigger | function | function_email | function_sms | function_push | delay | conditional_branch | wait_until_condition | wait_until_time_window | random_cohort_branch | exit.'
+ 'trigger | function | function_email | function_sms | delay | conditional_branch | wait_until_condition | wait_until_time_window | random_cohort_branch | exit.'
),
config: zod
.unknown()
diff --git a/products/workflows/mcp/tools.yaml b/products/workflows/mcp/tools.yaml
index d2a7bc46fc1e..e1db95f5fe5a 100644
--- a/products/workflows/mcp/tools.yaml
+++ b/products/workflows/mcp/tools.yaml
@@ -94,19 +94,18 @@ tools:
title: Create workflow
description: >
Create a workflow. Needs an actions array with exactly one type='trigger' (config.type:
- event|webhook|manual|batch|tracking_pixel) plus action nodes —
- function/function_email/function_sms/function_push, delay (e.g. '30m'), conditional_branch,
- wait_until_condition — connected by edges. Created as a draft; activate with workflows-enable. 'batch' =
- broadcast to an audience, one run per matching person (emails/messages). The audience is
- config.filters.properties: person-property conditions ({type:'person',key,value,operator}) and/or cohort
- references ({type:'cohort',key:'id',value:<id>,operator:'in'}). Prefer inline person-property conditions or
- a dynamic (filter-based) cohort via cohorts-create — these re-evaluate as people qualify; a static cohort is
- a frozen list, use only when given an explicit set. An event trigger fires on every occurrence matching the
- event and the trigger's filters; throttle repeat firings with trigger_masking (dedup/sampling — not
- behavioral filtering). Behavioral cohorts/targeting ('did event X at least N times over the last M days')
- are unsupported — if the user requests one, reject it and explain why. A batch workflow doesn't fire on
- enable alone: dispatch it with workflows-run-batch (one-off) or attach a recurring schedule with
- workflows-schedule-create.
+ event|webhook|manual|batch|tracking_pixel) plus action nodes — function/function_email/function_sms, delay
+ (e.g. '30m'), conditional_branch, wait_until_condition — connected by edges. Created as a draft; activate
+ with workflows-enable. 'batch' = broadcast to an audience, one run per matching person (emails/messages).
+ The audience is config.filters.properties: person-property conditions ({type:'person',key,value,operator})
+ and/or cohort references ({type:'cohort',key:'id',value:<id>,operator:'in'}). Prefer inline person-property
+ conditions or a dynamic (filter-based) cohort via cohorts-create — these re-evaluate as people qualify; a
+ static cohort is a frozen list, use only when given an explicit set. An event trigger fires on every
+ occurrence matching the event and the trigger's filters; throttle repeat firings with trigger_masking
+ (dedup/sampling — not behavioral filtering). Behavioral cohorts/targeting ('did event X at least N times
+ over the last M days') are unsupported — if the user requests one, reject it and explain why. A batch
+ workflow doesn't fire on enable alone: dispatch it with workflows-run-batch (one-off) or attach a recurring
+ schedule with workflows-schedule-create.
ui_app: workflow
workflows-get:
operation: hog_flows_retrieve
diff --git a/services/mcp/schema/generated-tool-definitions.json b/services/mcp/schema/generated-tool-definitions.json
index e113cb40ecc8..5df2b3c9968d 100644
--- a/services/mcp/schema/generated-tool-definitions.json
+++ b/services/mcp/schema/generated-tool-definitions.json
@@ -6748,7 +6748,7 @@
}
},
"workflows-create": {
- "description": "Create a workflow. Needs an actions array with exactly one type='trigger' (config.type: event|webhook|manual|batch|tracking_pixel) plus action nodes — function/function_email/function_sms/function_push, delay (e.g. '30m'), conditional_branch, wait_until_condition — connected by edges. Created as a draft; activate with workflows-enable. 'batch' = broadcast to an audience, one run per matching person (emails/messages). The audience is config.filters.properties: person-property conditions ({type:'person',key,value,operator}) and/or cohort references ({type:'cohort',key:'id',value:<id>,operator:'in'}). Prefer inline person-property conditions or a dynamic (filter-based) cohort via cohorts-create — these re-evaluate as people qualify; a static cohort is a frozen list, use only when given an explicit set. An event trigger fires on every occurrence matching the event and the trigger's filters; throttle repeat firings with trigger_masking (dedup/sampling — not behavioral filtering). Behavioral cohorts/targeting ('did event X at least N times over the last M days') are unsupported — if the user requests one, reject it and explain why. A batch workflow doesn't fire on enable alone: dispatch it with workflows-run-batch (one-off) or attach a recurring schedule with workflows-schedule-create.",
+ "description": "Create a workflow. Needs an actions array with exactly one type='trigger' (config.type: event|webhook|manual|batch|tracking_pixel) plus action nodes — function/function_email/function_sms, delay (e.g. '30m'), conditional_branch, wait_until_condition — connected by edges. Created as a draft; activate with workflows-enable. 'batch' = broadcast to an audience, one run per matching person (emails/messages). The audience is config.filters.properties: person-property conditions ({type:'person',key,value,operator}) and/or cohort references ({type:'cohort',key:'id',value:<id>,operator:'in'}). Prefer inline person-property conditions or a dynamic (filter-based) cohort via cohorts-create — these re-evaluate as people qualify; a static cohort is a frozen list, use only when given an explicit set. An event trigger fires on every occurrence matching the event and the trigger's filters; throttle repeat firings with trigger_masking (dedup/sampling — not behavioral filtering). Behavioral cohorts/targeting ('did event X at least N times over the last M days') are unsupported — if the user requests one, reject it and explain why. A batch workflow doesn't fire on enable alone: dispatch it with workflows-run-batch (one-off) or attach a recurring schedule with workflows-schedule-create.",
"category": "Workflows",
"feature": "workflows",
"summary": "Create workflow",
diff --git a/services/mcp/schema/tool-definitions-all.json b/services/mcp/schema/tool-definitions-all.json
index f54990f1f9a0..343c1907cea9 100644
--- a/services/mcp/schema/tool-definitions-all.json
+++ b/services/mcp/schema/tool-definitions-all.json
@@ -7285,7 +7285,7 @@
}
},
"workflows-create": {
- "description": "Create a workflow. Needs an actions array with exactly one type='trigger' (config.type: event|webhook|manual|batch|tracking_pixel) plus action nodes — function/function_email/function_sms/function_push, delay (e.g. '30m'), conditional_branch, wait_until_condition — connected by edges. Created as a draft; activate with workflows-enable. 'batch' = broadcast to an audience, one run per matching person (emails/messages). The audience is config.filters.properties: person-property conditions ({type:'person',key,value,operator}) and/or cohort references ({type:'cohort',key:'id',value:<id>,operator:'in'}). Prefer inline person-property conditions or a dynamic (filter-based) cohort via cohorts-create — these re-evaluate as people qualify; a static cohort is a frozen list, use only when given an explicit set. An event trigger fires on every occurrence matching the event and the trigger's filters; throttle repeat firings with trigger_masking (dedup/sampling — not behavioral filtering). Behavioral cohorts/targeting ('did event X at least N times over the last M days') are unsupported — if the user requests one, reject it and explain why. A batch workflow doesn't fire on enable alone: dispatch it with workflows-run-batch (one-off) or attach a recurring schedule with workflows-schedule-create.",
+ "description": "Create a workflow. Needs an actions array with exactly one type='trigger' (config.type: event|webhook|manual|batch|tracking_pixel) plus action nodes — function/function_email/function_sms, delay (e.g. '30m'), conditional_branch, wait_until_condition — connected by edges. Created as a draft; activate with workflows-enable. 'batch' = broadcast to an audience, one run per matching person (emails/messages). The audience is config.filters.properties: person-property conditions ({type:'person',key,value,operator}) and/or cohort references ({type:'cohort',key:'id',value:<id>,operator:'in'}). Prefer inline person-property conditions or a dynamic (filter-based) cohort via cohorts-create — these re-evaluate as people qualify; a static cohort is a frozen list, use only when given an explicit set. An event trigger fires on every occurrence matching the event and the trigger's filters; throttle repeat firings with trigger_masking (dedup/sampling — not behavioral filtering). Behavioral cohorts/targeting ('did event X at least N times over the last M days') are unsupported — if the user requests one, reject it and explain why. A batch workflow doesn't fire on enable alone: dispatch it with workflows-run-batch (one-off) or attach a recurring schedule with workflows-schedule-create.",
"category": "Workflows",
"feature": "workflows",
"summary": "Create workflow",
diff --git a/services/mcp/src/api/generated.ts b/services/mcp/src/api/generated.ts
index 2a6c3710d0ca..825e1f608e6a 100644
--- a/services/mcp/src/api/generated.ts
+++ b/services/mcp/src/api/generated.ts
@@ -20104,8 +20104,6 @@ export namespace Schemas {
/**
* * `continue` - continue
* * `abort` - abort
- * * `complete` - complete
- * * `branch` - branch
*/
export type OnErrorEnum = typeof OnErrorEnum[keyof typeof OnErrorEnum];
@@ -20113,8 +20111,6 @@ export namespace Schemas {
export const OnErrorEnum = {
Continue: 'continue',
Abort: 'abort',
- Complete: 'complete',
- Branch: 'branch',
} as const;
/**
@@ -20161,12 +20157,10 @@ export namespace Schemas {
name: string;
/** Optional description. */
description?: string;
- /** On failure: continue (skip), abort (stop), complete (mark done), branch (follow error edge).
+ /** On failure: continue (skip the action and proceed) or abort (stop the run).
*
* * `continue` - continue
- * * `abort` - abort
- * * `complete` - complete
- * * `branch` - branch */
+ * * `abort` - abort */
on_error?: OnErrorEnum | null;
/** Created at (epoch ms). Frontend-managed. */
created_at?: number;
@@ -20175,7 +20169,7 @@ export namespace Schemas {
/** Property filters gating this action. */
filters?: HogFunctionFilters | null;
/**
- * trigger | function | function_email | function_sms | function_push | delay | conditional_branch | wait_until_condition | wait_until_time_window | random_cohort_branch | exit.
+ * trigger | function | function_email | function_sms | delay | conditional_branch | wait_until_condition | wait_until_time_window | random_cohort_branch | exit.
* @maxLength 100
*/
type: string;
@@ -20385,6 +20379,10 @@ export namespace Schemas {
/** @maxLength 400 */
name: string;
description?: string;
+ /** On failure: continue (skip the action and proceed) or abort (stop the run).
+ *
+ * * `continue` - continue
+ * * `abort` - abort */
on_error?: OnErrorEnum | null;
created_at?: number;
updated_at?: number;
diff --git a/services/mcp/src/generated/workflows/api.ts b/services/mcp/src/generated/workflows/api.ts
index 6066904c6139..988cf035500b 100644
--- a/services/mcp/src/generated/workflows/api.ts
+++ b/services/mcp/src/generated/workflows/api.ts
@@ -141,16 +141,12 @@ export const HogFlowsCreateBody = /* @__PURE__ */ zod.object({
.describe('Optional description.'),
on_error: zod
.union([
- zod
- .enum(['continue', 'abort', 'complete', 'branch'])
- .describe(
- '* `continue` - continue\n* `abort` - abort\n* `complete` - complete\n* `branch` - branch'
- ),
+ zod.enum(['continue', 'abort']).describe('* `continue` - continue\n* `abort` - abort'),
zod.null(),
])
.optional()
.describe(
- 'On failure: continue (skip), abort (stop), complete (mark done), branch (follow error edge).\n\n* `continue` - continue\n* `abort` - abort\n* `complete` - complete\n* `branch` - branch'
+ 'On failure: continue (skip the action and proceed) or abort (stop the run).\n\n* `continue` - continue\n* `abort` - abort'
),
created_at: zod.number().optional().describe('Created at (epoch ms). Frontend-managed.'),
updated_at: zod.number().optional().describe('Updated at (epoch ms). Frontend-managed.'),
@@ -180,7 +176,7 @@ export const HogFlowsCreateBody = /* @__PURE__ */ zod.object({
.string()
.max(hogFlowsCreateBodyActionsItemTypeMax)
.describe(
- 'trigger | function | function_email | function_sms | function_push | delay | conditional_branch | wait_until_condition | wait_until_time_window | random_cohort_branch | exit.'
+ 'trigger | function | function_email | function_sms | delay | conditional_branch | wait_until_condition | wait_until_time_window | random_cohort_branch | exit.'
),
config: zod
.unknown()
@@ -316,16 +312,12 @@ export const HogFlowsPartialUpdateBody = /* @__PURE__ */ zod.object({
.describe('Optional description.'),
on_error: zod
.union([
- zod
- .enum(['continue', 'abort', 'complete', 'branch'])
- .describe(
- '* `continue` - continue\n* `abort` - abort\n* `complete` - complete\n* `branch` - branch'
- ),
+ zod.enum(['continue', 'abort']).describe('* `continue` - continue\n* `abort` - abort'),
zod.null(),
])
.optional()
.describe(
- 'On failure: continue (skip), abort (stop), complete (mark done), branch (follow error edge).\n\n* `continue` - continue\n* `abort` - abort\n* `complete` - complete\n* `branch` - branch'
+ 'On failure: continue (skip the action and proceed) or abort (stop the run).\n\n* `continue` - continue\n* `abort` - abort'
),
created_at: zod.number().optional().describe('Created at (epoch ms). Frontend-managed.'),
updated_at: zod.number().optional().describe('Updated at (epoch ms). Frontend-managed.'),
@@ -355,7 +347,7 @@ export const HogFlowsPartialUpdateBody = /* @__PURE__ */ zod.object({
.string()
.max(hogFlowsPartialUpdateBodyActionsItemTypeMax)
.describe(
- 'trigger | function | function_email | function_sms | function_push | delay | conditional_branch | wait_until_condition | wait_until_time_window | random_cohort_branch | exit.'
+ 'trigger | function | function_email | function_sms | delay | conditional_branch | wait_until_condition | wait_until_time_window | random_cohort_branch | exit.'
),
config: zod
.unknown()
diff --git a/services/mcp/tests/unit/__snapshots__/tool-schemas/workflows-create.json b/services/mcp/tests/unit/__snapshots__/tool-schemas/workflows-create.json
index a4724df71081..afa679631619 100644
--- a/services/mcp/tests/unit/__snapshots__/tool-schemas/workflows-create.json
+++ b/services/mcp/tests/unit/__snapshots__/tool-schemas/workflows-create.json
@@ -96,21 +96,21 @@
"on_error": {
"anyOf": [
{
- "description": "* `continue` - continue\n* `abort` - abort\n* `complete` - complete\n* `branch` - branch",
- "enum": ["continue", "abort", "complete", "branch"],
+ "description": "* `continue` - continue\n* `abort` - abort",
+ "enum": ["continue", "abort"],
"type": "string"
},
{
"type": "null"
}
],
- "description": "On failure: continue (skip), abort (stop), complete (mark done), branch (follow error edge).\n\n* `continue` - continue\n* `abort` - abort\n* `complete` - complete\n* `branch` - branch"
+ "description": "On failure: continue (skip the action and proceed) or abort (stop the run).\n\n* `continue` - continue\n* `abort` - abort"
},
"output_variable": {
"description": "Output variable definition for downstream actions."
},
"type": {
- "description": "trigger | function | function_email | function_sms | function_push | delay | conditional_branch | wait_until_condition | wait_until_time_window | random_cohort_branch | exit.",
+ "description": "trigger | function | function_email | function_sms | delay | conditional_branch | wait_until_condition | wait_until_time_window | random_cohort_branch | exit.",
"maxLength": 100,
"type": "string"
},
diff --git a/services/mcp/tests/unit/__snapshots__/tool-schemas/workflows-update.json b/services/mcp/tests/unit/__snapshots__/tool-schemas/workflows-update.json
index 99c1f8493e87..25bda88bd4cd 100644
--- a/services/mcp/tests/unit/__snapshots__/tool-schemas/workflows-update.json
+++ b/services/mcp/tests/unit/__snapshots__/tool-schemas/workflows-update.json
@@ -96,21 +96,21 @@
"on_error": {
"anyOf": [
{
- "description": "* `continue` - continue\n* `abort` - abort\n* `complete` - complete\n* `branch` - branch",
- "enum": ["continue", "abort", "complete", "branch"],
+ "description": "* `continue` - continue\n* `abort` - abort",
+ "enum": ["continue", "abort"],
"type": "string"
},
{
"type": "null"
}
],
- "description": "On failure: continue (skip), abort (stop), complete (mark done), branch (follow error edge).\n\n* `continue` - continue\n* `abort` - abort\n* `complete` - complete\n* `branch` - branch"
+ "description": "On failure: continue (skip the action and proceed) or abort (stop the run).\n\n* `continue` - continue\n* `abort` - abort"
},
"output_variable": {
"description": "Output variable definition for downstream actions."
},
"type": {
- "description": "trigger | function | function_email | function_sms | function_push | delay | conditional_branch | wait_until_condition | wait_until_time_window | random_cohort_branch | exit.",
+ "description": "trigger | function | function_email | function_sms | delay | conditional_branch | wait_until_condition | wait_until_time_window | random_cohort_branch | exit.",
"maxLength": 100,
"type": "string"
},