Run a Wiro workflow
run_workflowStart a workflow run, wait for results up to a set time, and optionally stop at a breakpoint to test early steps before continuing.
Instructions
Start a workflow run and wait for it up to wait_seconds. Costs money: every model step is charged to the wallet like a normal model run when it finishes, and the run needs at least $0.50 of balance per model step to start. A started run keeps going until it ends, so start it only when the user asked for this run, and tell them the estimate first. To try only the first steps, pass breakpoint_node_id: the run stops after that step's layer and can be continued with resume_workflow_run. Take the input keys from get_workflow, or from the create_workflow or save_workflow_from_agent result. If the run is still going when the wait ends, continue with wait_for_workflow_run; never call run_workflow again for the same job.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| slug | Yes | The full workflow slug ("<name>-<5 character id>") or the workflow page URL. | |
| input | No | Values for the workflow's inputs, keyed exactly as get_workflow lists them. File inputs take public http(s) URLs; a file that is only on the user's device needs a public link first. Omitted inputs use the saved value, then the default. On a protected gallery workflow that is not yours or your team's, an omitted input uses its default, not its saved value; pass the saved value get_workflow shows to use it. | |
| wait_seconds | No | How long to wait for the result (0-600 seconds, default 45). | |
| breakpoint_node_id | No | Optional step id ("node-...") to stop after, for testing the first steps. Only for workflows you can edit. Not the last step. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| run | Yes | ||
| debug | No | ||
| nextAction | No |