Update workflow
update_workflowReplace an existing workflow's graph with an edited definition.
Read the current graph with get_workflow(include_definition=true), edit it, then validate_workflow_definition for the token. Call without confirm first: nothing is written and you get what it replaces plus an edit_token, which confirm=true requires.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| confirm | No | false writes nothing and returns what would change. true REPLACES the stored graph. | |
| definition | Yes | The graph, as {"graph": {"nodes": [...], "edges": [...]}}. Get the skeleton from get_node_info. | |
| edit_token | No | From this tool's own unconfirmed reply. Proves the user approved replacing THIS graph; expires in 10 minutes. | |
| workflow_id | Yes | The workflow_id from list_workflows. Never invent one. | |
| validation_token | Yes | From validate_workflow_definition, for these exact definition bytes. Expires in 10 minutes. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | ||
| note | No | ||
| updated | No | ||
| replaces | No | ||
| next_step | No | ||
| edit_token | No | ||
| console_url | No | ||
| workflow_id | No | ||
| workspace_slug | No | ||
| content_changes | No | ||
| workflow_summary | No | ||
| requires_confirmation | No |