Run a Workbench flow
workbench_flows_runExecute a flow and return its outputs synchronously. Runs the draft by default; pass source:"published" (optionally a version) to run the live published version. Spends workspace LLM budget, bounded by the token's cost cap. input is the flow's input envelope, e.g. {"kind":"chat","messages":[…]} or {"kind":"form","values":{…}}.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| input | No | Flow input envelope (RunFlowInput). Omit for a flow that needs none. | |
| flowId | Yes | Flow id to run. | |
| source | No | Which version to run. Default: draft. | |
| version | No | Published version label (only with source:"published"). | |
| timeoutMs | No | Max runtime in ms (also the hard cost ceiling). | |
| workspace | No | Workspace slug. Personal tokens with no default workspace MUST pass this. Ignored for workspace API keys. | |
| approvalId | No | Re-call with the approvalId from a needs_confirmation response after the user approves. |