vm_task_status
Poll a vSphere task by its ID to check progress and outcome. Returns state, progress percent, and error details, so you can confirm completion without re-running the operation.
Instructions
[READ] Poll a long-running vSphere task by its id (from an async vm_delete_snapshot).
Use after vm_delete_snapshot returns a task id, instead of re-running the delete. Returns state (queued/running/success/error/gone), progress percent, and the entity name. 'gone' means vCenter already garbage-collected a completed task — re-list the resource to confirm the final state. A failed task reports its fault under 'task_error'; a top-level 'error' key would mean this poll itself failed.
Returns: Dict with task_id, state, progress_pct, operation, entity, and task_error/note when relevant.
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": "vm_task_status"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| target | No | vCenter/ESXi target name from config.yaml; omit to use the default target. | |
| task_id | Yes | The task id string returned by an async write operation. |