cancel_task
Stop a pending or running AI task by its ID or cancel all tasks in a batch using the batch ID. Manage workflows efficiently with MCP Task server's task cancellation feature.
Instructions
Cancel a pending or running task, or all tasks in a batch.
Input Schema
Name | Required | Description | Default |
---|---|---|---|
batch_id | No | Cancel all tasks with this batch ID (required if task_id not provided) | |
task_id | No | The task ID to cancel (required if batch_id not provided) |
Input Schema (JSON Schema)
{
"properties": {
"batch_id": {
"description": "Cancel all tasks with this batch ID (required if task_id not provided)",
"type": "string"
},
"task_id": {
"description": "The task ID to cancel (required if batch_id not provided)",
"type": "string"
}
},
"required": [],
"type": "object"
}