Cancel Flow Run
cancel-flow-runCancel running or waiting Power Automate flow runs. Stop workflow execution using flow ID and run ID to terminate processes before completion.
Instructions
Cancel a running or waiting flow run. Cannot cancel flows already in a terminal state (Succeeded, Failed, Cancelled).
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": {
"flowId": "<flowId>",
"runId": "<runId>"
},
"name": "cancel-flow-run"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| flowId | Yes | The workflow ID (GUID) | |
| runId | Yes | The flow run ID | |
| environment | No | Environment name (e.g. DEV, UAT). Uses default if omitted. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| success | Yes | ||
| flowId | Yes | ||
| runId | Yes | ||
| previousStatus | Yes |