terminate_workflow
Forcefully stop a Temporal workflow execution by ID, optionally providing a reason or namespace to end stuck or unwanted runs.
Instructions
Forcefully terminate a workflow execution
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": {
"workflow_id": "<workflow_id>"
},
"name": "terminate_workflow"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| reason | No | Reason for termination | |
| namespace | No | Temporal namespace for this operation; omit to use the server default | |
| workflow_id | Yes | The workflow execution ID to terminate |