Skip to content

workflow_publish

Managementcatalog

Publish Workflow

Not in the default tool list

This tool lives in the tool catalog. Discover it with scenario_tools_search (or enumerate everything with scenario_tools_list) and run it via scenario_tool_execute_write. To list every tool directly, connect with ?toolsets=full.

Publish a workflow: compile its stored editor_info into a runnable flow and flip status to "ready". Publishing replaces the workflow's current runnable flow and lets everyone with access run it. Confirm with the user before publishing. Mirrors the webapp's "Convert to App" step. Use this after workflow_create / workflow_update persisted a draft (editor_info + inputs) so workflow_run can invoke it. The workflow stays in its current state if validation or compilation fails — error cases surface the compiler's message. Args: - workflow_id: required - team_id, project_id: required for OAuth callers Returns: the published (ready) workflow record, plus _publishHint when runs will pause at an approval or selection step. Example: "Make this workflow runnable" -> workflow_id="workflow_xxx"
destructiveopen-world

Parameters

NameTypeRequiredDescription
workflow_idstring✓Workflow ID.
team_idstring—Team ID. Required with project_id for OAuth callers; an API key is scoped by the key.
project_idstring—Project ID. Required with team_id for OAuth callers; an API key is scoped by the key.
response_formatenum(json | markdown)jsonOutput format: 'json' for structured data, 'markdown' for human-readable text.