set_desktop_pool_enabled
Enable or disable a Horizon desktop pool to control new session creation, previewing the blast radius and requiring confirmation before applying changes.
Instructions
[WRITE] Enable or disable a desktop pool — disabling stops NEW sessions (existing keep running).
Idempotent (matching state returns a noop). A bare call returns blast_radius (pool identity, current and new enabled state) and changes nothing; confirm=True applies. A pool whose current enabled state cannot be read is refused. 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.
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 applies it. | |
| enabled | Yes | True enables; False disables. | |
| pool_id | Yes | The pool id (from list_desktop_pools). |