Control run
control_runPause, resume, or terminate an in-flight durable workflow run, or send an event to a run waiting on a wait or approval so it resumes.
Instructions
Act on one in-flight durable run: pause, resume, terminate (stops it where it is; completed steps are not undone), or send_event to deliver an event to a run parked on a wait or approval, resuming it. For send_event, read get_run first and use one of its awaitingEvents as eventType: Cloudflare accepts any type, so a wrong one silently does nothing. To run a workflow again from the start, use run_workflow; replaying from a step is not offered because it would repeat effects that already happened.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| action | Yes | ||
| payload | No | send_event only: JSON delivered to the waiting node. | |
| eventType | No | Required for send_event: one of the run's awaitingEvents, exactly. | |
| instanceId | Yes | The durable run's id. | |
| workflowId | Yes | The workflow's id, from list_workflows or create_workflow. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| note | No | ||
| action | Yes | ||
| status | No | ||
| nextTool | No | ||
| delivered | No | ||
| eventType | No | ||
| timestamp | No | ||
| instanceId | Yes |