Cancel remote task
cancel_taskCancels a previously submitted computer task by command_id. For a queued task this prevents execution. For an active shell_execute task this sends a cancellation control command to the target computer and terminates the real PowerShell process tree. For a completed process_start command whose Process Session is still running, it resolves the retained session_id and reuses process_stop to terminate that process tree. It does not merely relabel cloud state. Use only when the user explicitly wants that task stopped. Calling it again is idempotent.
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": {
"command_id": "<command_id>"
},
"name": "cancel_task"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| command_id | Yes | The command_id of the computer task to cancel. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | Yes | ||
| method | Yes | ||
| status | Yes | ||
| terminal | Yes | ||
| cancelled | Yes | ||
| device_id | Yes | ||
| command_id | Yes | ||
| device_name | Yes | ||
| next_action | Yes | ||
| workflow_id | Yes | ||
| ai_session_id | Yes | ||
| cancel_requested | Yes | ||
| cancel_command_id | Yes | ||
| process_session_id | Yes | ||
| process_session_stopped | Yes |