cancel_workflow
Stop an active DBOS workflow by marking it cancelled at the next step boundary. Optionally cancel child workflows to halt all related processing.
Instructions
Cancel a running workflow.
Sets the workflow status to CANCELLED. The workflow will stop executing at the next step boundary.
Args: application_name (string, required): Name of the DBOS application workflow_id (string, required): ID of the workflow to cancel cancel_children (bool, optional): Also cancel child workflows started by this workflow (default: false)
Returns: message (string): Confirmation message workflow_id (string): The cancelled workflow ID
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": {
"application_name": "<application_name>",
"workflow_id": "<workflow_id>"
},
"name": "cancel_workflow"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| workflow_id | Yes | ||
| cancel_children | No | ||
| application_name | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||