Run a Wiro workflow
run_workflowStart a workflow run, wait up to a set time for results, and optionally stop after a chosen step to test early stages. Model steps are charged to your wallet.
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 tell the user the estimate and start it only after their yes. 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.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"slug": "<slug>"
},
"name": "run_workflow"
}
}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-3600 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 |