terminate_workflow_execution
Stop a running Temporal workflow immediately. Use when you need to abort an active workflow execution and mark it as terminated.
Instructions
Terminate a running workflow execution. This immediately stops the workflow and marks it as terminated.
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": {
"workflowId": "<workflowId>"
},
"name": "terminate_workflow_execution"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| runId | No | Optional run ID. If not provided, terminates the latest run. | |
| reason | No | Reason for termination (optional) | |
| region | No | Region where the workflow is running. Defaults to "us" if not specified. | |
| workflowId | Yes | The workflow ID to terminate |