workflow_cancel
Cancel a specific workflow session or clear all active sessions to reset workflow state and remove orphaned processes.
Instructions
Cancel a workflow session or clear all workflow sessions.
Use cases:
Cancel a stale/orphaned workflow from a previous session
Reset workflow state when restarting work
Clear all workflows to start fresh
Options:
session_id: Cancel a specific workflow session
cancel_all: true to cancel ALL active workflow sessions
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "workflow_cancel"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cancel_all | No | Set to true to cancel ALL active workflow sessions | |
| session_id | No | Specific workflow session ID to cancel. If not provided and cancel_all is false, lists active sessions. |