agent_peer_task_cancel
Cancel an active delegated task running on a peer agent by signaling an irreversible halt; verify task status first to avoid aborting completed work.
Instructions
Signal cancellation for an active delegated task running on the peer agent. Irreversible state transition; halts remote execution if the task has not already completed. Call agent_peer_task_status first to verify the task is still running.
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": {
"task_id": "<task_id>"
},
"name": "agent_peer_task_cancel"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| reason | No | Human-readable explanation for why the task is being aborted | |
| task_id | Yes | The unique task identifier of the active task to cancel |