workflow_publish
ManagementcatalogPublish 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
| Name | Type | Required | Description |
|---|---|---|---|
| workflow_id | string | ✓ | Workflow ID. |
| team_id | string | — | Team ID. Required with project_id for OAuth callers; an API key is scoped by the key. |
| project_id | string | — | Project ID. Required with team_id for OAuth callers; an API key is scoped by the key. |
| response_format | enum(json | markdown) | json | Output format: 'json' for structured data, 'markdown' for human-readable text. |