Update a Wiro workflow
update_workflowEdit a workflow's title, description, tags, or step graph safely. The tool checks for conflicts with a loaded timestamp and requires explicit confirmation before saving irreversible changes.
Instructions
Change a workflow you own (or your team owns): title, description, tags and/or its whole step graph. Read it with get_workflow first and send the full edited contents, plus that call's updatetime as loaded_updatetime so a newer save by someone else is not overwritten. Leave metadata.input.values out to keep the saved input values; a value shown as [hidden] is restored from the saved workflow. Everyone who can open the workflow can read its saved values, so never save a key or password in one. Wiro checks and prepares the new graph like create_workflow, with the same 40 KB limit on the new graph, also when the saved workflow is larger (removing steps can bring it under). Replacing the steps cannot be undone: without confirm: true the call checks the new graph, reports any problems and the defaults it filled, and returns what would change, saving nothing; show it to the user and repeat the call with confirm: true after they agree. Editing a published workflow takes it out of the public gallery until Wiro reviews it again, so that also needs acknowledge_review_reset: true.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| slug | Yes | The full workflow slug or the workflow page URL. | |
| tags | No | Replaces the tags. | |
| force | No | Overwrite a newer version. Only when the user explicitly wants that. | |
| title | No | New title. | |
| confirm | No | Required to save new `contents`, after the user approved the change summary. | |
| contents | No | The workflow graph (version "1"): {version, nodes, output, schema, metadata}. Read get_playbook topic "workflow-graph" for the format and an example. | |
| description | No | New description, 1 to 1000 characters. | |
| loaded_updatetime | No | The `updatetime` from get_workflow (or the last update). Protects against overwriting newer changes. | |
| acknowledge_review_reset | No | Required to edit a published workflow, after the user agreed it leaves the gallery until reviewed. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | ||
| state | No | ||
| title | Yes | ||
| inputs | Yes | ||
| changes | No | ||
| outputs | Yes | ||
| preview | No | ||
| renamed | Yes | ||
| fullSlug | Yes | ||
| warnings | Yes | ||
| discarded | No | With unchanged: Start field changes Wiro does not keep, because it saves Start fields the way the wiro.ai editor writes them. | |
| unchanged | Yes | ||
| nextAction | No | ||
| updatetime | No | ||
| reviewReset | Yes | ||
| contentsChanged | Yes |