cancel_vdi_task
Cancel a running VDI pool task, like an image push, by previewing its impact first and then confirming to stop it.
Instructions
[WRITE] Cancel a running pool task (e.g. an in-progress image push).
A bare call reads the task and returns blast_radius (task type, state, progress) and cancels nothing; confirm=True cancels. A task whose type or state cannot be read is refused. Work already applied is not rolled back. Show blast_radius to the user and wait for their decision. Do not set confirm=True on your own because the user asked for this earlier: they have not seen the blast radius yet. Audited.
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": {
"pool_id": "<pool_id>",
"task_id": "<task_id>"
},
"name": "cancel_vdi_task"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| target | No | Horizon target from config.yaml; omit to use the default. | |
| confirm | No | False (default) returns the blast radius and changes nothing. True cancels. | |
| pool_id | Yes | The desktop-pool id. | |
| task_id | Yes | The task id (from get_vdi_task_status). |