Cancel Batch Task Group
omp_cancel_groupStop a running batch task group and its child tasks immediately by sending a cancellation request that the group coordinator safely processes. Use this when the user asks to cancel a batch.
Instructions
Request immediate cancellation of a running batch task group and its child tasks. Writes a cancellation request that the detached group coordinator handles safely. Call this immediately when the user asks to stop a batch.
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": {
"group_id": "<group_id>"
},
"name": "omp_cancel_group"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| reason | No | Reason for cancellation | Cancelled at the user's request |
| group_id | Yes | The group_id of the batch task group to cancel |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tasks | No | ||
| status | Yes | ||
| summary | Yes | ||
| group_id | Yes | ||
| total_tasks | Yes | ||
| failed_tasks | Yes | ||
| max_parallel | Yes | ||
| blocked_tasks | Yes | ||
| cancelled_tasks | Yes | ||
| completed_tasks | Yes |